2020-07-03 21:01:39 +02:00
|
|
|
# This is a sample configuration file. You can generate your configuration
|
2024-07-05 10:54:45 +02:00
|
|
|
# with the `bundle exec rails mastodon:setup` interactive setup wizard, but to customize
|
2020-07-03 21:01:39 +02:00
|
|
|
# your setup even further, you'll need to edit it manually. This sample does
|
|
|
|
# not demonstrate all available configuration options. Please look at
|
2020-07-12 22:11:31 +02:00
|
|
|
# https://docs.joinmastodon.org/admin/config/ for the full documentation.
|
2020-07-03 21:01:39 +02:00
|
|
|
|
2021-10-25 16:34:15 +02:00
|
|
|
# Note that this file accepts slightly different syntax depending on whether
|
|
|
|
# you are using `docker-compose` or not. In particular, if you use
|
|
|
|
# `docker-compose`, the value of each declared variable will be taken verbatim,
|
|
|
|
# including surrounding quotes.
|
|
|
|
# See: https://github.com/mastodon/mastodon/issues/16895
|
|
|
|
|
2020-07-03 21:01:39 +02:00
|
|
|
# Federation
|
|
|
|
# ----------
|
|
|
|
# This identifies your server and cannot be changed safely later
|
|
|
|
# ----------
|
|
|
|
LOCAL_DOMAIN=example.com
|
|
|
|
|
|
|
|
# Redis
|
|
|
|
# -----
|
|
|
|
REDIS_HOST=localhost
|
|
|
|
REDIS_PORT=6379
|
|
|
|
|
|
|
|
# PostgreSQL
|
|
|
|
# ----------
|
|
|
|
DB_HOST=/var/run/postgresql
|
|
|
|
DB_USER=mastodon
|
|
|
|
DB_NAME=mastodon_production
|
|
|
|
DB_PASS=
|
|
|
|
DB_PORT=5432
|
|
|
|
|
2021-11-26 08:30:02 +01:00
|
|
|
# Elasticsearch (optional)
|
2020-07-03 21:01:39 +02:00
|
|
|
# ------------------------
|
|
|
|
ES_ENABLED=true
|
|
|
|
ES_HOST=localhost
|
|
|
|
ES_PORT=9200
|
2021-10-24 17:20:03 +02:00
|
|
|
# Authentication for ES (optional)
|
|
|
|
ES_USER=elastic
|
|
|
|
ES_PASS=password
|
2020-07-03 21:01:39 +02:00
|
|
|
|
|
|
|
# Secrets
|
|
|
|
# -------
|
2024-07-05 10:54:45 +02:00
|
|
|
# Make sure to use `bundle exec rails secret` to generate secrets
|
2020-07-03 21:01:39 +02:00
|
|
|
# -------
|
|
|
|
SECRET_KEY_BASE=
|
|
|
|
OTP_SECRET=
|
|
|
|
|
2024-10-15 16:14:17 +02:00
|
|
|
# Encryption secrets
|
|
|
|
# ------------------
|
|
|
|
# Must be available (and set to same values) for all server processes
|
|
|
|
# These are private/secret values, do not share outside hosting environment
|
|
|
|
# Use `bin/rails db:encryption:init` to generate fresh secrets
|
2024-10-16 10:43:45 +02:00
|
|
|
# Do not change these secrets once in use, as this would cause data loss and other issues
|
2024-10-15 16:14:17 +02:00
|
|
|
# ------------------
|
|
|
|
# ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=
|
|
|
|
# ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=
|
|
|
|
# ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=
|
|
|
|
|
2020-07-03 21:01:39 +02:00
|
|
|
# Web Push
|
|
|
|
# --------
|
2024-07-05 10:54:45 +02:00
|
|
|
# Generate with `bundle exec rails mastodon:webpush:generate_vapid_key`
|
2020-07-03 21:01:39 +02:00
|
|
|
# --------
|
|
|
|
VAPID_PRIVATE_KEY=
|
|
|
|
VAPID_PUBLIC_KEY=
|
|
|
|
|
|
|
|
# Sending mail
|
|
|
|
# ------------
|
2022-12-15 18:42:08 +01:00
|
|
|
SMTP_SERVER=
|
2020-07-03 21:01:39 +02:00
|
|
|
SMTP_PORT=587
|
|
|
|
SMTP_LOGIN=
|
|
|
|
SMTP_PASSWORD=
|
2022-03-06 22:51:40 +01:00
|
|
|
SMTP_FROM_ADDRESS=notifications@example.com
|
2020-07-03 21:01:39 +02:00
|
|
|
|
|
|
|
# File storage (optional)
|
|
|
|
# -----------------------
|
|
|
|
S3_ENABLED=true
|
|
|
|
S3_BUCKET=files.example.com
|
|
|
|
AWS_ACCESS_KEY_ID=
|
|
|
|
AWS_SECRET_ACCESS_KEY=
|
|
|
|
S3_ALIAS_HOST=files.example.com
|
2022-07-07 03:14:28 +02:00
|
|
|
|
|
|
|
# IP and session retention
|
|
|
|
# -----------------------
|
|
|
|
# Make sure to modify the scheduling of ip_cleanup_scheduler in config/sidekiq.yml
|
|
|
|
# to be less than daily if you lower IP_RETENTION_PERIOD below two days (172800).
|
|
|
|
# -----------------------
|
|
|
|
IP_RETENTION_PERIOD=31556952
|
|
|
|
SESSION_RETENTION_PERIOD=31556952
|