# Production runtime environment for the Coves frontend container. # Copy to .env.prod on the server (gitignored). Loaded by docker-compose.prod.yml # via env_file. Full reference for every variable: docs/ENVIRONMENT.md. # Public URL of this frontend. adapter-node needs it for origin / form-action # checks; its https scheme also gates the CSP upgrade-insecure-requests directive. ORIGIN=https://coves.social # Header the front proxy (the backend stack's Caddy) sets to the real client IP. # Caddy's `header_up X-Real-IP {remote_host}` OVERWRITES any client-sent value — # that is the property this setting depends on. Do not change one without the other. ADDRESS_HEADER=x-real-ip # The Coves backend as the BROWSER reaches it. Required in production. PUBLIC_INSTANCE_URL=https://coves.social # The backend as THIS CONTAINER reaches it: straight to the appview container # over coves-prod-network, skipping the Caddy round-trip. Plaintext http is # allowed only for this exact origin, hence ALLOW_HTTP_INTERNAL_INSTANCE. PUBLIC_INTERNAL_INSTANCE=http://appview:8080 ALLOW_HTTP_INTERNAL_INSTANCE=true # Origins