From 0021a8eded501574a852506d1a10054f0de602c6 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com.> Date: Tue, 29 Jul 2025 11:04:59 +0100 Subject: [PATCH] fix swagger --- docker/frontend/nginx.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docker/frontend/nginx.conf b/docker/frontend/nginx.conf index e2ecb990d..34ba0beaa 100644 --- a/docker/frontend/nginx.conf +++ b/docker/frontend/nginx.conf @@ -68,6 +68,28 @@ http { proxy_cache off; } + # Proxy API docs to backend + location /v3/api-docs { + proxy_pass ${VITE_API_BASE_URL}/v3/api-docs; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; + } + + # Proxy v1 API docs to backend + location /v1/api-docs { + proxy_pass ${VITE_API_BASE_URL}/v1/api-docs; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; + } + # Cache static assets location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { expires 1y;