Updated frontend

This commit is contained in:
sriram
2026-08-12 16:33:39 +05:30
parent d2ac832960
commit dae0b3e0fb
14 changed files with 297 additions and 164 deletions

View File

@@ -37,6 +37,24 @@ http {
proxy_read_timeout 300s;
}
# FastAPI's interactive docs. These are served at the app root by
# FastAPI (/docs, /redoc, /openapi.json) rather than under /api, so
# without this block they fall through to the SPA below and return
# index.html instead of Swagger.
#
# This publishes your full API surface to anyone who finds the URL.
# To close it off, delete this block and reach the docs through an SSH
# tunnel instead: ssh -L 8000:localhost:8000 user@vps
location ~ ^/(docs|redoc|openapi\.json) {
set $docs_upstream "http://backend:8000";
proxy_pass $docs_upstream;
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;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;