mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-05 20:15:22 +00:00
show swagger docs!
This commit is contained in:
parent
f38d051d7d
commit
e0b7b2ad3f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user