Environment variables
| Variable | Purpose |
|---|---|
ADMIN_EMAIL / ADMIN_PASSWORD | credentials used by trek:admin:user |
ADMIN_ALLOWED_IPS | the IP addresses and ranges the admin answers, e.g. 203.0.113.0/24, 2001:db8::/32; elsewhere it's a 404 (open to all when unset, see Proxies) |
POSTMARK_API_TOKEN | Postmark email delivery (auto-injected into credentials by the installer) |
APPSIGNAL_PUSH_API_KEY | AppSignal error tracking and performance monitoring (auto-injected into credentials by the installer) |
APPSIGNAL_APP_ENV | environment name reported to AppSignal (optional, defaults to RAILS_ENV) |
FEATURE_AUDIT_LOG | false stops the audit log recording requests (on by default) |
GOOD_JOB_MAX_THREADS | number of job threads GoodJob runs, and the share of the database pool reserved for them (optional, defaults to RAILS_MAX_THREADS) — see Background jobs |
FEATURE_STORAGE | s3 stores the uploads on S3 outside production too, e.g. in development; otherwise development stores them in public/uploads and the tests in memory. Production always uses S3 |
TREK_LOCALES | the locales the installer sets up, comma-separated, e.g. en,fr,de (the --locales option of trek:install:locales too; defaults to en, fr) |
S3_BUCKET, S3_REGION, S3_ENDPOINT, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_BASE_URL | S3 storage configuration for uploads |