2020-08-09 00:06:17 +02: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
|
|
|
|
# https://docs.joinmastodon.org/admin/config/ for the full documentation.
|
|
|
|
|
2022-01-07 01:25:26 +01: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-08-09 00:06:17 +02:00
|
|
|
# Federation
|
|
|
|
# ----------
|
|
|
|
# This identifies your server and cannot be changed safely later
|
|
|
|
# ----------
|
|
|
|
LOCAL_DOMAIN=__DOMAIN__
|
|
|
|
|
|
|
|
# Redis
|
|
|
|
# -----
|
2019-03-21 04:30:44 +01:00
|
|
|
REDIS_HOST=localhost
|
|
|
|
REDIS_PORT=6379
|
2021-05-16 18:55:19 +02:00
|
|
|
REDIS_NAMESPACE=__REDIS_NAMESPACE__
|
2020-08-09 00:06:17 +02:00
|
|
|
|
|
|
|
# PostgreSQL
|
|
|
|
# ----------
|
2019-03-21 04:30:44 +01:00
|
|
|
DB_HOST=localhost
|
|
|
|
DB_USER=__DB_USER__
|
|
|
|
DB_NAME=__DB_NAME__
|
|
|
|
DB_PASS=__DB_PWD__
|
|
|
|
DB_PORT=5432
|
2020-08-09 00:06:17 +02:00
|
|
|
|
2024-02-24 23:28:27 +01:00
|
|
|
# Elasticsearch (optional)
|
2020-08-09 00:06:17 +02:00
|
|
|
# ------------------------
|
2024-02-24 23:28:27 +01:00
|
|
|
ES_ENABLED=false
|
|
|
|
# ES_HOST=localhost
|
2019-03-21 04:30:44 +01:00
|
|
|
# ES_PORT=9200
|
2024-02-24 23:28:27 +01:00
|
|
|
# Authentication for ES (optional)
|
|
|
|
# ES_USER=elastic
|
|
|
|
# ES_PASS=password
|
2019-03-21 04:30:44 +01:00
|
|
|
|
2020-08-09 00:06:17 +02:00
|
|
|
# Secrets
|
|
|
|
# -------
|
|
|
|
# Make sure to use `rake secret` to generate secrets
|
|
|
|
# -------
|
2019-03-21 04:30:44 +01:00
|
|
|
SECRET_KEY_BASE=__SECRET_KEY_BASE__
|
|
|
|
OTP_SECRET=__OTP_SECRET__
|
|
|
|
|
2020-08-09 00:06:17 +02:00
|
|
|
# Web Push
|
|
|
|
# --------
|
|
|
|
# Generate with `rake mastodon:webpush:generate_vapid_key`
|
|
|
|
# --------
|
2019-03-23 02:58:59 +01:00
|
|
|
VAPID_PRIVATE_KEY=__VAPID_PRIVATE_KEY__
|
|
|
|
VAPID_PUBLIC_KEY=__VAPID_PUBLIC_KEY__
|
|
|
|
|
2020-08-09 00:06:17 +02:00
|
|
|
# Sending mail
|
|
|
|
# ------------
|
2019-03-21 04:30:44 +01:00
|
|
|
SMTP_SERVER=localhost
|
|
|
|
SMTP_PORT=25
|
2024-02-24 23:28:27 +01:00
|
|
|
SMTP_LOGIN=__APP__
|
|
|
|
SMTP_PASSWORD=__MAIL_PWD__
|
|
|
|
SMTP_FROM_ADDRESS=Mastodon <__APP__@__DOMAIN__>
|
|
|
|
SMTP_DELIVERY_METHOD=smtp
|
|
|
|
SMTP_AUTH_METHOD=plain
|
2019-03-21 04:30:44 +01:00
|
|
|
SMTP_OPENSSL_VERIFY_MODE=none
|
|
|
|
|
2020-08-09 00:06:17 +02:00
|
|
|
# Registrations
|
|
|
|
# ------------
|
|
|
|
# Single user mode will disable registrations and redirect frontpage to the first profile
|
|
|
|
# SINGLE_USER_MODE=true
|
|
|
|
# Prevent registrations with following e-mail domains
|
|
|
|
# EMAIL_DOMAIN_BLACKLIST=example1.com|example2.de|etc
|
|
|
|
# Only allow registrations with the following e-mail domains
|
|
|
|
# EMAIL_DOMAIN_WHITELIST=example1.com|example2.de|etc
|
2019-03-21 04:30:44 +01:00
|
|
|
|
2020-08-09 00:06:17 +02:00
|
|
|
# Optionally change default language
|
|
|
|
DEFAULT_LOCALE=__LANGUAGE__
|
2019-03-21 04:30:44 +01:00
|
|
|
|
2020-08-09 00:06:17 +02:00
|
|
|
# File storage (optional)
|
|
|
|
# -----------------------
|
2024-02-24 23:28:27 +01:00
|
|
|
S3_ENABLED=false
|
|
|
|
# S3_BUCKET=files.example.com
|
2019-03-21 04:30:44 +01:00
|
|
|
# AWS_ACCESS_KEY_ID=
|
|
|
|
# AWS_SECRET_ACCESS_KEY=
|
2024-02-24 23:28:27 +01:00
|
|
|
# S3_ALIAS_HOST=files.example.com
|
2019-03-21 04:30:44 +01:00
|
|
|
|
2024-02-24 23:28:27 +01:00
|
|
|
# IP and session retention
|
2020-08-09 00:06:17 +02:00
|
|
|
# -----------------------
|
2019-07-10 01:07:32 +02:00
|
|
|
LDAP_ENABLED=true
|
|
|
|
LDAP_HOST=localhost
|
|
|
|
LDAP_PORT=389
|
2019-07-13 10:51:01 +02:00
|
|
|
LDAP_METHOD=start_tls
|
2019-07-10 01:07:32 +02:00
|
|
|
LDAP_BASE=ou=users,dc=yunohost,dc=org
|
2019-10-18 23:29:38 +02:00
|
|
|
LDAP_BIND_DN=uid=local,ou=users,dc=yunohost,dc=org
|
2019-08-04 00:31:07 +02:00
|
|
|
LDAP_PASSWORD=
|
2019-07-10 01:07:32 +02:00
|
|
|
LDAP_UID=uid
|
2020-04-07 03:16:50 +02:00
|
|
|
LDAP_MAIL=mail
|
|
|
|
LDAP_SEARCH_FILTER=(|(%{uid}=%{email})(%{mail}=%{email}))
|
|
|
|
LDAP_UID_CONVERSION_ENABLED=true
|
|
|
|
LDAP_UID_CONVERSION_SEARCH=., -
|
|
|
|
LDAP_UID_CONVERSION_REPLACE=_
|
2019-07-13 10:51:01 +02:00
|
|
|
LDAP_TLS_NO_VERIFY=true
|
2024-02-24 23:28:27 +01:00
|
|
|
|
|
|
|
# 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=1209600
|
|
|
|
SESSION_RETENTION_PERIOD=1209600
|