Update komodo/mastodon/.env.sample

This commit is contained in:
2026-01-19 03:11:25 +00:00
parent 816188080d
commit 6c46240a32

View File

@@ -1,64 +1,48 @@
# .env (example/base) # Reference list of environment variables / placeholders that Komodo should set for the containers.
# Basic user/group and timezone # Fill these in your Komodo service/environment configuration (do NOT store secrets in VCS).
PUID=1000
PGID=1000
TZ=Etc/UTC
# Domain and redis # Basic site
LOCAL_DOMAIN=example.com LOCAL_DOMAIN=masto.pcenicni.social
REDIS_HOST=redis LOCAL_HTTPS=true # true since Pangolin terminates TLS
REDIS_PORT=6379 RAILS_ENV=production
PORT=3000
STREAMING_PORT=4000
# Postgres DB # Database (Postgres)
DB_HOST=db DB_HOST=db
DB_USER=mastodon
DB_NAME=mastodon
DB_PASS=mastodon
DB_PORT=5432 DB_PORT=5432
DB_POOL=5 DB_NAME=mastodon_production
DB_USER=mastodon
# DB password: must be set securely in Komodo
DB_PASSWORD=__REPLACE_DB_PASSWORD__ # used by postgres service
DB_PASS=${DB_PASSWORD} # passed into Mastodon containers
# Elasticsearch (optional) # Redis
ES_ENABLED=false REDIS_URL=redis://redis:6379
ES_HOST=es # If you use a Redis password, set REDIS_URL accordingly (e.g. redis://:password@redis:6379)
ES_PORT=9200
ES_USER=elastic
ES_PASS=elastic
# ActiveRecord encryption & application secrets (required in production) # Mastodon secrets (generate securely)
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY= SECRET_KEY_BASE=__REPLACE_SECRET_KEY_BASE__
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY= OTP_SECRET=__REPLACE_OTP_SECRET__
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT= VAPID_PUBLIC_KEY=__REPLACE_VAPID_PUBLIC_KEY__
SECRET_KEY_BASE= VAPID_PRIVATE_KEY=__REPLACE_VAPID_PRIVATE_KEY__
OTP_SECRET=
VAPID_PRIVATE_KEY=
VAPID_PUBLIC_KEY=
# SMTP settings # ActiveRecord encryption keys (required for Rails/Mastodon encrypted attributes)
SMTP_SERVER=mail.example.com # Generate strong random values (examples below generate hex strings).
SMTP_PORT=25 # Komodo must set these three variables. Do NOT reuse or change them after data is written without a proper key-rotation plan.
SMTP_LOGIN= ACTIVERECORD_ENCRYPTION_PRIMARY_KEY=__REPLACE_WITH_PRIMARY_KEY__ # 32 bytes (hex recommended)
SMTP_PASSWORD= ACTIVERECORD_ENCRYPTION_DETERMINISTIC_KEY=__REPLACE_WITH_DETERMINISTIC_KEY__ # 32 bytes (hex recommended)
ACTIVERECORD_ENCRYPTION_KEY_DERIVATION_SALT=__REPLACE_WITH_KEY_DERIVATION_SALT__ # 16 bytes (hex recommended)
# Mail / SMTP (placeholders; template uses Gmail STARTTLS)
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_LOGIN=notifications@example.com
SMTP_PASSWORD=__REPLACE_SMTP_PASSWORD__
SMTP_FROM_ADDRESS=notifications@example.com SMTP_FROM_ADDRESS=notifications@example.com
SMTP_AUTH_METHOD=plain
SMTP_OPENSSL_VERIFY_MODE=require
# S3 / AWS (optional) # Misc
S3_ENABLED=false STREAMING_ENABLED=true
S3_BUCKET= RAILS_SERVE_STATIC_FILES=true
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
S3_ALIAS_HOST=
# Sidekiq options (optional)
SIDEKIQ_ONLY=false
SIDEKIQ_QUEUE=
SIDEKIQ_DEFAULT=false
SIDEKIQ_THREADS=5
# Other options
NO_CHOWN=
MASTODON_PROMETHEUS_EXPORTER_ENABLED=
# Host paths and ports (customize)
CONFIG_PATH=/path/to/mastodon/config
PORT_HTTP=80
PORT_HTTPS=443
PORT_PROMETHEUS=9394