mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-22 10:34:43 +02:00
fix(gui): revert port to 8000, use 302 for setup gate redirect
- Revert uvicorn port from 8088 to 8000 (1b-1 pinned value) - Change SetupGateMiddleware redirect from 307 to 302 for consistency with all other redirects in the codebase Port 8000 confirmed free on CT104. Earlier change to 8088 was incorrect — 8080 is held by NATS WebSocket, not 8000. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f059f982bc
commit
1fefc0f491
2 changed files with 2 additions and 2 deletions
|
|
@ -169,7 +169,7 @@ def main() -> None:
|
||||||
uvicorn.run(
|
uvicorn.run(
|
||||||
"central.gui:app",
|
"central.gui:app",
|
||||||
host="0.0.0.0",
|
host="0.0.0.0",
|
||||||
port=8088,
|
port=8000,
|
||||||
reload=False,
|
reload=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class SetupGateMiddleware(BaseHTTPMiddleware):
|
||||||
if not setup_complete:
|
if not setup_complete:
|
||||||
# Setup not complete - only allow exempt paths
|
# Setup not complete - only allow exempt paths
|
||||||
if not _is_exempt(path, SETUP_EXEMPT_PATHS, SETUP_EXEMPT_PREFIXES):
|
if not _is_exempt(path, SETUP_EXEMPT_PATHS, SETUP_EXEMPT_PREFIXES):
|
||||||
return RedirectResponse(url="/setup", status_code=307)
|
return RedirectResponse(url="/setup", status_code=302)
|
||||||
else:
|
else:
|
||||||
# Setup complete - redirect /setup to /
|
# Setup complete - redirect /setup to /
|
||||||
if path == "/setup":
|
if path == "/setup":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue