diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 82e87607..3d482f4c 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -31,6 +31,18 @@ server { return 301 /admin/; } + location /swagger/ { + proxy_pass http://backend:8000/swagger/; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + proxy_redirect off; + } + + location = /swagger { + absolute_redirect off; + return 301 /swagger/; + } + location /static/ { autoindex on; alias /static/;