diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 1dab688..08aefde 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -20,35 +20,6 @@ server { access_log off; } - # Keep the browser and API on the same origin in production. This must be - # evaluated before the SPA fallback, otherwise /api/* returns index.html. - location /api/ { - proxy_pass http://backend:8000; - proxy_http_version 1.1; - 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 Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_connect_timeout 15s; - proxy_read_timeout 3600s; - proxy_send_timeout 3600s; - proxy_buffering off; - } - - location /docs { - proxy_pass http://backend:8000; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - - location /openapi.json { - proxy_pass http://backend:8000; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - # SPA fallback - all routes serve index.html location / { try_files $uri $uri/ /index.html;