nginx: reverse-proxy legacy /scan.html /demo.html /report/* alongside /api/*
These paths are still served by the old FastAPI container (now obdx-api), so the new landing nginx must forward them upstream instead of letting the SPA fallback swallow them. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,4 +6,5 @@ dist
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.dev-screenshot-*.png
|
.dev-screenshot-*.png
|
||||||
.playwright-mcp
|
.playwright-mcp
|
||||||
|
.memory
|
||||||
*.log
|
*.log
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ server {
|
|||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Reverse proxy /api/* to FastAPI backend container.
|
# Reverse proxy to FastAPI backend container (legacy obdx-web → obdx-api).
|
||||||
# In Coolify the backend service hostname is the application name on the
|
# Covers: /api/v1/* + the three legacy HTML pages and report subpaths that
|
||||||
# internal network. Override OBDX_API_UPSTREAM at deploy time if it differs.
|
# the old container still serves. Everything else falls through to the SPA.
|
||||||
location /api/ {
|
location ~ ^/(api/|scan\.html$|demo\.html$|report/) {
|
||||||
proxy_pass http://obdx-api:8080;
|
proxy_pass http://obdx-api:8080;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
Reference in New Issue
Block a user