This commit is contained in:
msnie
2025-01-31 20:06:26 +01:00
parent 63f6ed5919
commit f66d910362
3 changed files with 377 additions and 216 deletions
+55
View File
@@ -0,0 +1,55 @@
LOCAL_DOMAIN=kvist.knast.cc
# Redis
# -----
REDIS_HOST=redis
REDIS_PORT=6379
# PostgreSQL
# ----------
DB_HOST=db
DB_USER=postgres
DB_NAME=mastodon_production
DB_PASS=
DB_PORT=5432
# Secrets
# -------
# Generate each with the `RAILS_ENV=production bundle exec rake secret` task (`docker-compose run --rm web bundle exec rake secret` if you use docker compose)
# -------
SECRET_KEY_BASE=29e52e5bd23fdeab4676ef27eafcac36b3db9a5842ec9e50910f78c350ac4c1d3d722003ab473936d67d68bc6c5702174effda71d94e27cdaea049d4c6958eb8
OTP_SECRET=48cb26b4254c56457e9279b877a11d9e43f9e8e4b63875f80390bfe132597bb61ea405c040a4ff1b16736290c40a9efc166986eb2502c00f77527c6ff22f5b9f
VAPID_PRIVATE_KEY=4da48ca5d54eb6222db3971d446dc9ad5d372ae6555c85b5221ceb56a88248f10977a1c00809a101d1bfcd6cb34aedaeee6fb471deb78912327c143f108f38d2
VAPID_PUBLIC_KEY=24923f2e2296745137e79deb1bdaecf221406278ae7ebebd1c5d583cacb2455a5713c726dbdd107ef4b4c0ab52040b0d9c08af69cc5f75391b0cac49ea313b40
# Registrations
# -------------
# Single user mode will disable registrations and redirect frontpage to the first profile
SINGLE_USER_MODE=true
# Sending mail
# ------------
SMTP_SERVER=email-smtp.ca-central-1.amazonaws.com
SMTP_PORT=587
SMTP_LOGIN=........
SMTP_PASSWORD=........
SMTP_OPENSSL_VERIFY_MODE=none
SMTP_ENABLE_STARTTLS=auto
SMTP_FROM_ADDRESS=mastodon@kvist.knast.cc
# Custom settings
# ---------------
MAX_TOOT_CHARS=1000
MAX_PINNED_TOOTS=5
MAX_BIO_CHARS=500
MAX_PROFILE_FIELDS=4
MAX_DISPLAY_NAME_CHARS=30
MAX_POLL_OPTIONS=5
MAX_POLL_OPTION_CHARS=100
MAX_IMAGE_SIZE=536870912
MAX_VIDEO_SIZE=1073741824
# IP and session retention
# -----------------------
IP_RETENTION_PERIOD=31556952
SESSION_RETENTION_PERIOD=31556952