2020-08-08 22:06:17 +00:00
|
|
|
# This is a sample configuration file. You can generate your configuration
|
2024-12-28 00:29:20 +00:00
|
|
|
# with the `bundle exec rails mastodon:setup` interactive setup wizard, but to customize
|
2020-08-08 22:06:17 +00:00
|
|
|
# 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 00:25:26 +00: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-08 22:06:17 +00:00
|
|
|
# Federation
|
|
|
|
|
# ----------
|
|
|
|
|
# This identifies your server and cannot be changed safely later
|
|
|
|
|
# ----------
|
|
|
|
|
LOCAL_DOMAIN=__DOMAIN__
|
|
|
|
|
|
|
|
|
|
# Redis
|
|
|
|
|
# -----
|
2019-03-21 03:30:44 +00:00
|
|
|
REDIS_HOST=localhost
|
|
|
|
|
REDIS_PORT=6379
|
2021-05-16 16:55:19 +00:00
|
|
|
REDIS_NAMESPACE=__REDIS_NAMESPACE__
|
2020-08-08 22:06:17 +00:00
|
|
|
|
|
|
|
|
# PostgreSQL
|
|
|
|
|
# ----------
|
2019-03-21 03:30:44 +00:00
|
|
|
DB_HOST=localhost
|
|
|
|
|
DB_USER=__DB_USER__
|
|
|
|
|
DB_NAME=__DB_NAME__
|
|
|
|
|
DB_PASS=__DB_PWD__
|
|
|
|
|
DB_PORT=5432
|
2020-08-08 22:06:17 +00:00
|
|
|
|
2024-02-24 22:28:27 +00:00
|
|
|
# Elasticsearch (optional)
|
2020-08-08 22:06:17 +00:00
|
|
|
# ------------------------
|
2024-02-24 22:28:27 +00:00
|
|
|
ES_ENABLED=false
|
|
|
|
|
# ES_HOST=localhost
|
2019-03-21 03:30:44 +00:00
|
|
|
# ES_PORT=9200
|
2024-02-24 22:28:27 +00:00
|
|
|
# Authentication for ES (optional)
|
|
|
|
|
# ES_USER=elastic
|
|
|
|
|
# ES_PASS=password
|
2019-03-21 03:30:44 +00:00
|
|
|
|
2020-08-08 22:06:17 +00:00
|
|
|
# Secrets
|
|
|
|
|
# -------
|
2024-12-28 00:29:20 +00:00
|
|
|
# Make sure to use `bundle exec rails secret` to generate secrets
|
2020-08-08 22:06:17 +00:00
|
|
|
# -------
|
2019-03-21 03:30:44 +00:00
|
|
|
SECRET_KEY_BASE=__SECRET_KEY_BASE__
|
|
|
|
|
OTP_SECRET=__OTP_SECRET__
|
|
|
|
|
|
2024-12-28 00:29:20 +00: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
|
|
|
|
|
# Do not change these secrets once in use, as this would cause data loss and other issues
|
|
|
|
|
# ------------------
|
|
|
|
|
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=__ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY__
|
|
|
|
|
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=__ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT__
|
|
|
|
|
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=__ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY__
|
|
|
|
|
|
2020-08-08 22:06:17 +00:00
|
|
|
# Web Push
|
|
|
|
|
# --------
|
2024-12-28 00:29:20 +00:00
|
|
|
# Generate with `bundle exec rails mastodon:webpush:generate_vapid_key`
|
2020-08-08 22:06:17 +00:00
|
|
|
# --------
|
2019-03-23 01:58:59 +00:00
|
|
|
VAPID_PRIVATE_KEY=__VAPID_PRIVATE_KEY__
|
|
|
|
|
VAPID_PUBLIC_KEY=__VAPID_PUBLIC_KEY__
|
|
|
|
|
|
2020-08-08 22:06:17 +00:00
|
|
|
# Sending mail
|
|
|
|
|
# ------------
|
2019-03-21 03:30:44 +00:00
|
|
|
SMTP_SERVER=localhost
|
|
|
|
|
SMTP_PORT=25
|
2024-02-24 22:28:27 +00: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 03:30:44 +00:00
|
|
|
SMTP_OPENSSL_VERIFY_MODE=none
|
|
|
|
|
|
2020-08-08 22:06:17 +00: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 03:30:44 +00:00
|
|
|
|
2020-08-08 22:06:17 +00:00
|
|
|
# Optionally change default language
|
|
|
|
|
DEFAULT_LOCALE=__LANGUAGE__
|
2019-03-21 03:30:44 +00:00
|
|
|
|
2020-08-08 22:06:17 +00:00
|
|
|
# File storage (optional)
|
|
|
|
|
# -----------------------
|
2024-02-24 22:28:27 +00:00
|
|
|
S3_ENABLED=false
|
|
|
|
|
# S3_BUCKET=files.example.com
|
2019-03-21 03:30:44 +00:00
|
|
|
# AWS_ACCESS_KEY_ID=
|
|
|
|
|
# AWS_SECRET_ACCESS_KEY=
|
2024-02-24 22:28:27 +00:00
|
|
|
# S3_ALIAS_HOST=files.example.com
|
2019-03-21 03:30:44 +00:00
|
|
|
|
2024-02-24 22:28:27 +00:00
|
|
|
# IP and session retention
|
2020-08-08 22:06:17 +00:00
|
|
|
# -----------------------
|
2019-07-09 23:07:32 +00:00
|
|
|
LDAP_ENABLED=true
|
|
|
|
|
LDAP_HOST=localhost
|
|
|
|
|
LDAP_PORT=389
|
2019-07-13 08:51:01 +00:00
|
|
|
LDAP_METHOD=start_tls
|
2019-07-09 23:07:32 +00:00
|
|
|
LDAP_BASE=ou=users,dc=yunohost,dc=org
|
2019-10-18 21:29:38 +00:00
|
|
|
LDAP_BIND_DN=uid=local,ou=users,dc=yunohost,dc=org
|
2019-08-03 22:31:07 +00:00
|
|
|
LDAP_PASSWORD=
|
2019-07-09 23:07:32 +00:00
|
|
|
LDAP_UID=uid
|
2020-04-07 01:16:50 +00: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 08:51:01 +00:00
|
|
|
LDAP_TLS_NO_VERIFY=true
|
2024-02-24 22:28:27 +00: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).
|
|
|
|
|
# -----------------------
|
2024-12-28 00:29:20 +00:00
|
|
|
IP_RETENTION_PERIOD=31556952
|
|
|
|
|
SESSION_RETENTION_PERIOD=31556952
|