Fix nginx config

This commit is contained in:
Georges-Antoine Assi
2023-08-19 22:00:20 -04:00
parent c1d1291b48
commit 7b67495c23

View File

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