# Kit template — host-owned at /opt//.env (chmod 600). # CD never uploads this file — only the IMAGE_TAG line is patched each release. # Never commit a filled .env. # # PG_* must be Npgsql key=value form, not a URI. No wrapping quotes. # Every segment must be Key=Value. A common mistake that breaks readiness: # Username=app;mysecret!;SSL Mode=Disable ← missing Password= # Correct: # Username=app;Password=mysecret!;SSL Mode=Disable # ---- image coordinates ---- REGISTRY=git.vectur45.com// IMAGE_TAG=latest # ---- exposed ports on the production host ---- API_PORT=8100 UI_PORT=8101 # ---- PostgreSQL (shared-services network; Host=postgres is Docker DNS) ---- PG_CONNECTION=Host=postgres;Port=5432;Database=myapp;Username=myapp;Password=CHANGE_ME;SSL Mode=Disable # DDL-only for the CD migrate job (Gitea secret PG_CONNECTION_DDL). Never inject into the API container. # PG_CONNECTION_DDL=Host=postgres;Port=5432;Database=myapp;Username=myapp_migrator;Password=CHANGE_ME;SSL Mode=Disable # ---- application secrets (openssl rand -base64 48) ---- API_KEY=CHANGE_ME_AT_LEAST_32_BYTES