show swagger docs!

This commit is contained in:
Anthony Stirling 2025-07-29 10:40:32 +01:00
parent f38d051d7d
commit e0b7b2ad3f

View File

@ -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;