| 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 | # Storage limits for release assets. Sizes are bytes or binary units: 1073741824, 1gb, 500mb. |
| 22 | # STORAGE_QUOTA_BYTES caps what each account (a user, or an organization for its repositories) may store; empty means unlimited. |
| 23 | STORAGE_QUOTA_BYTES= |
| 24 | # Largest single asset. Defaults to 2gb; one upload can never exceed 5gb. |
| 25 | RELEASE_ASSET_MAX_BYTES= |
| 26 | |
| 27 | # Code search: the api publishes zoekt shards to the bucket under zoekt/ and queries the zoekt node (apps/zoekt) at ZOEKT_URL. Empty turns code search off. |
| 28 | ZOEKT_URL= |
| 29 | |
| 30 | # Origin of the web app; verify and reset-password forms live there. |
| 31 | WEB_APP_URL=http://localhost:3000 |
| 32 | |
| 33 | # The docs app (apps/docs) and the instance it links back to. Both are inlined |
| 34 | # into their bundles at build time, so set them before building, not at boot. |
| 35 | NEXT_PUBLIC_DOCS_URL=http://localhost:3003 |
| 36 | NEXT_PUBLIC_WEB_APP_URL=http://localhost:3000 |
| 37 | |
| 38 | # Email verification is opt-in so self-hosted instances work without a mail server. |
| 39 | EMAIL_VERIFICATION_ENABLED=false |
| 40 | EMAIL_SENDER="Ghost <noreply@ghost.local>" |
| 41 | # Either an HTTP relay... |
| 42 | EMAIL_PROXY= |
| 43 | EMAIL_PROXY_SECRET= |
| 44 | # ...or SMTP. |
| 45 | MAIL_HOST= |
| 46 | MAIL_PORT=587 |
| 47 | MAIL_SECURE=false |
| 48 | MAIL_USER= |
| 49 | MAIL_PASSWORD= |
| 50 | # `queue` hands issue and pull request emails to apps/delivery, which retries them. Leave empty to send them from the API. |
| 51 | # apps/delivery reads EMAIL_PROXY, EMAIL_PROXY_SECRET and EMAIL_SENDER above. |
| 52 | DELIVERY_EMAIL= |
| 53 | |
| 54 | # Webhook secrets are stored encrypted with this key (AES-256-GCM). The API and apps/delivery need the same value. |
| 55 | # Generate one with: openssl rand -base64 32 |
| 56 | WEBHOOK_SECRET_KEY= |
| 57 | # `true` lets webhooks reach private and loopback addresses, for self-hosted receivers on your own network. |
| 58 | # Cloud metadata (169.254.0.0/16) stays blocked either way. |
| 59 | WEBHOOK_ALLOW_PRIVATE_NETWORKS=false |
| 60 | |
| 61 | # Telemetry goes to the `lgtm` container: `docker compose up -d lgtm`, Grafana on http://localhost:3100. Clear both to turn it off. |
| 62 | OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 |
| 63 | PYROSCOPE_SERVER_ADDRESS=http://localhost:4040 |
| 64 | GRAFANA_USER=admin |
| 65 | GRAFANA_PASSWORD= |