1.5 KiB
1.5 KiB
Remove In-Repo Nginx Design
Goal: Remove all in-repository Nginx runtime, build, publish, and documentation responsibilities while keeping the frontend as an independently deployable image behind an external reverse proxy.
Decisions
- Remove the
nginx/directory and every repository-owned Nginx configuration reference. - Keep
docker-compose.yamlas the deployment entrypoint, but change the production topology tofrontend + backend + db. - Keep
frontendas a standalone runtime image that serves the built SPA directly. - Keep
backendas the only API container and let the external reverse proxy route/apiand/healthto it. - Update historical docs so they describe the current topology instead of preserving obsolete Nginx-based guidance.
Architecture
dbremains the persistent PostgreSQL service.backendremains the FastAPI service exposed on port8000.frontendbecomes a standalone container image built fromfrontend/Dockerfileand serves the compiled SPA on its own port.- The external reverse proxy is now the only public entrypoint and is responsible for routing browser traffic to
frontendand API traffic tobackend.
Operational Notes
- The frontend still assumes same-origin API access, so the external proxy must route
/api/*and/healthtobackend. - The repository publish flow should only build and push
ctms-backendandctms-frontend. - Verification should prove that no runtime, CI, or document references to repository-managed Nginx remain.