From 62132b7f536c9b6e2825519ed733c29dd033e044 Mon Sep 17 00:00:00 2001 From: Nikholas Pcenicni Date: Mon, 19 Jan 2026 02:28:13 +0000 Subject: [PATCH] Added .env.sample for mastodon compose --- komodo/mastodon/.env.sample | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 komodo/mastodon/.env.sample diff --git a/komodo/mastodon/.env.sample b/komodo/mastodon/.env.sample new file mode 100644 index 0000000..d2792b2 --- /dev/null +++ b/komodo/mastodon/.env.sample @@ -0,0 +1,64 @@ +# .env (example/base) +# Basic user/group and timezone +PUID=1000 +PGID=1000 +TZ=Etc/UTC + +# Domain and redis +LOCAL_DOMAIN=example.com +REDIS_HOST=redis +REDIS_PORT=6379 + +# Postgres DB +DB_HOST=db +DB_USER=mastodon +DB_NAME=mastodon +DB_PASS=mastodon +DB_PORT=5432 +DB_POOL=5 + +# Elasticsearch (optional) +ES_ENABLED=false +ES_HOST=es +ES_PORT=9200 +ES_USER=elastic +ES_PASS=elastic + +# ActiveRecord encryption & application secrets (required in production) +ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY= +ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY= +ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT= +SECRET_KEY_BASE= +OTP_SECRET= +VAPID_PRIVATE_KEY= +VAPID_PUBLIC_KEY= + +# SMTP settings +SMTP_SERVER=mail.example.com +SMTP_PORT=25 +SMTP_LOGIN= +SMTP_PASSWORD= +SMTP_FROM_ADDRESS=notifications@example.com + +# S3 / AWS (optional) +S3_ENABLED=false +S3_BUCKET= +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 \ No newline at end of file