From e0b7b2ad3f17c6dd602f7adccbdf229e6f662dff Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com.> Date: Tue, 29 Jul 2025 10:40:32 +0100 Subject: [PATCH] show swagger docs! --- docker/frontend/nginx.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docker/frontend/nginx.conf b/docker/frontend/nginx.conf index 456d70140..e2ecb990d 100644 --- a/docker/frontend/nginx.conf +++ b/docker/frontend/nginx.conf @@ -52,6 +52,22 @@ http { proxy_request_buffering off; } + # Proxy Swagger UI to backend + location /swagger-ui/ { + proxy_pass ${VITE_API_BASE_URL}/swagger-ui/; + 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_set_header Connection ''; + proxy_http_version 1.1; + proxy_buffering off; + proxy_cache off; + } + # Cache static assets location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { expires 1y;