Skip to content

Environment variables ​

VariablePurpose
ADMIN_EMAIL / ADMIN_PASSWORDcredentials used by trek:admin:user
ADMIN_ALLOWED_IPSthe 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_TOKENPostmark email delivery (auto-injected into credentials by the installer)
APPSIGNAL_PUSH_API_KEYAppSignal error tracking and performance monitoring (auto-injected into credentials by the installer)
APPSIGNAL_APP_ENVenvironment name reported to AppSignal (optional, defaults to RAILS_ENV)
FEATURE_AUDIT_LOGfalse stops the audit log recording requests (on by default)
GOOD_JOB_MAX_THREADSnumber 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_STORAGEs3 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_LOCALESthe 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_URLS3 storage configuration for uploads

Released under the MIT License.