2020-07-03 19:01:39 +00:00
|
|
|
# This is a sample configuration file. You can generate your configuration
|
|
|
|
# with the `rake mastodon:setup` interactive setup wizard, but to customize
|
|
|
|
# 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 20:11:31 +00:00
|
|
|
# https://docs.joinmastodon.org/admin/config/ for the full documentation.
|
2020-07-03 19:01:39 +00: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
|
|
|
|
|
|
|
|
# ElasticSearch (optional)
|
|
|
|
# ------------------------
|
|
|
|
ES_ENABLED=true
|
|
|
|
ES_HOST=localhost
|
|
|
|
ES_PORT=9200
|
2021-10-24 15:20:03 +00:00
|
|
|
# Authentication for ES (optional)
|
|
|
|
ES_USER=elastic
|
|
|
|
ES_PASS=password
|
2020-07-03 19:01:39 +00:00
|
|
|
|
|
|
|
# Secrets
|
|
|
|
# -------
|
|
|
|
# Make sure to use `rake secret` to generate secrets
|
|
|
|
# -------
|
|
|
|
SECRET_KEY_BASE=
|
|
|
|
OTP_SECRET=
|
|
|
|
|
|
|
|
# Web Push
|
|
|
|
# --------
|
|
|
|
# Generate with `rake mastodon:webpush:generate_vapid_key`
|
|
|
|
# --------
|
|
|
|
VAPID_PRIVATE_KEY=
|
|
|
|
VAPID_PUBLIC_KEY=
|
|
|
|
|
|
|
|
# Sending mail
|
|
|
|
# ------------
|
|
|
|
SMTP_SERVER=smtp.mailgun.org
|
|
|
|
SMTP_PORT=587
|
|
|
|
SMTP_LOGIN=
|
|
|
|
SMTP_PASSWORD=
|
|
|
|
SMTP_FROM_ADDRESS=notificatons@example.com
|
|
|
|
|
|
|
|
# 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
|
2021-04-25 10:02:41 +00:00
|
|
|
|
|
|
|
# Maximum custom emoji file sizes
|
|
|
|
# If undefined or smaller than MAX_EMOJI_SIZE, the value
|
|
|
|
# of MAX_EMOJI_SIZE will be used for MAX_REMOTE_EMOJI_SIZE
|
|
|
|
# Units are in bytes
|
|
|
|
MAX_EMOJI_SIZE=51200
|
|
|
|
MAX_REMOTE_EMOJI_SIZE=204800
|