| 1 | DATABASE_URL=postgres://postgres:postgres@localhost:5432/ghost |
| 2 | BETTER_AUTH_SECRET= |
| 3 | API_PORT=3001 |
| 4 | BETTER_AUTH_URL=http://localhost:$API_PORT |
| 5 | AUTH_TRUSTED_ORIGINS=http://localhost:3000 |
| 6 | # Set in production when web and API share a parent domain, e.g. .example.com |
| 7 | AUTH_COOKIE_DOMAIN= |
| 8 | NEXT_PUBLIC_API_URL=http://localhost:$API_PORT |
| 9 | |
| 10 | # SSH transport. Without a host key the listener never starts and git speaks HTTP only. |
| 11 | # Generate one with: ssh-keygen -t ed25519 -N '' -f ghost_host_key && base64 -i ghost_host_key |
| 12 | GIT_SSH_HOST_KEY= |
| 13 | # 1031 is the default because 2222 collides with Railway's own container SSH. |
| 14 | GIT_SSH_PORT=1031 |
| 15 | NEXT_PUBLIC_SSH_CLONE_HOST=localhost:1031 |
| 16 | S3_ENDPOINT=http://localhost:9000 |
| 17 | S3_ACCESS_KEY_ID=ghost |
| 18 | S3_SECRET_ACCESS_KEY=ghostsecret |
| 19 | S3_BUCKET=ghost |
| 20 | |
| 21 | # Origin of the web app; verify and reset-password forms live there. |
| 22 | WEB_APP_URL=http://localhost:3000 |
| 23 | |
| 24 | # The docs app (apps/docs) and the instance it links back to. Both are inlined |
| 25 | # into their bundles at build time, so set them before building, not at boot. |
| 26 | NEXT_PUBLIC_DOCS_URL=http://localhost:3003 |
| 27 | NEXT_PUBLIC_WEB_APP_URL=http://localhost:3000 |
| 28 | |
| 29 | # Email verification is opt-in so self-hosted instances work without a mail server. |
| 30 | EMAIL_VERIFICATION_ENABLED=false |
| 31 | EMAIL_SENDER="Ghost <noreply@ghost.local>" |
| 32 | # Either an HTTP relay... |
| 33 | EMAIL_PROXY= |
| 34 | EMAIL_PROXY_SECRET= |
| 35 | # ...or SMTP. |
| 36 | MAIL_HOST= |
| 37 | MAIL_PORT=587 |
| 38 | MAIL_SECURE=false |
| 39 | MAIL_USER= |
| 40 | MAIL_PASSWORD= |
| 41 | |
| 42 | # Telemetry goes to the `lgtm` container: `docker compose up -d lgtm`, Grafana on http://localhost:3100. Clear both to turn it off. |
| 43 | OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 |
| 44 | PYROSCOPE_SERVER_ADDRESS=http://localhost:4040 |
| 45 | GRAFANA_USER=admin |
| 46 | GRAFANA_PASSWORD= |