From 7b67495c236fe7afb78f48358fe413fc7cab5070 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 19 Aug 2023 22:00:20 -0400 Subject: [PATCH] Fix nginx config --- docker/nginx/default.conf | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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;