Files

1.0 KiB

SWAG reverse-proxy integration

The production Compose stack joins its nginx service to the existing external Docker network named by SWAG_NETWORK (default: swagnet). SWAG terminates TLS and proxies the public hostname to nginx:80; the application nginx container serves the React build and forwards /api/ to the private API service.

Copy app.subdomain.conf.sample into the SWAG nginx/proxy-confs/ directory, replace the placeholder domain settings using normal SWAG conventions, and restart or reload SWAG. The exact SWAG filesystem location is a server concern and is intentionally not encoded in this repository.

The API is private on the Compose internal network. Loopback API and frontend ports exist for server-local diagnostics; SWAG should reach the frontend by Docker service name over the external network. Confirm the real client IP and forwarded scheme at the Contact API before enabling submissions. The sample hostname is illustrative; the public hostname is not confirmed. See docs/DEPLOYMENT.md for commissioning gates.