1.2 KiB
1.2 KiB
Restore In-Repo Nginx Design
Goal: Restore the repository-managed Nginx entrypoint on dev by writing back the earlier removal diff, so frontend static hosting and backend API proxying return to a single same-origin entry.
Decisions
- Restore
nginx/nginx.confandnginx/Dockerfilefrom the pre-removal topology. - Replace the
frontendruntime service indocker-compose.yamlwith annginxservice that serves the built SPA and proxies/apiand/healthtobackend. - Remove the Caddy-specific runtime file because the repository will no longer use a separate frontend web server.
- Keep later non-nginx fixes that remain valid, especially the frontend API base URL fallback logic for optional local direct access.
Architecture
dbremains unchanged.backendremains unchanged and is reachable internally onbackend:8000.nginxbecomes the public entrypoint again, serving the frontend bundle and reverse proxying API traffic tobackend.- The browser returns to same-origin access through the Nginx entrypoint.
Operational Notes
- This is an in-place restoration based on the previous removal footprint, not a fresh redesign.
- The current Tencent Cloud/private registry removal remains intact and is not being reintroduced.