diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index ea273a323..ddf072336 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -42,17 +42,15 @@ http { proxy_redirect off; } - location /docs { - proxy_pass http://localhost:5000/docs; - } - location /redoc { - proxy_pass http://localhost:5000/redoc; + # OpenAPI for swagger and redoc + location /openapi.json { + proxy_pass http://localhost:5000; } # Backend api calls location /api { rewrite /api/(.*) /$1 break; - proxy_pass http://localhost:5000/; + proxy_pass http://localhost:5000; } location /ws { proxy_pass http://localhost:5000;