2022-11-19 21:55:50 +01:00
|
|
|
# environment
|
2022-11-24 08:57:12 +01:00
|
|
|
RAILS_ENV={{ mastodon_environment }}
|
|
|
|
NODE_ENV={{ mastodon_environment }}
|
2022-11-19 21:55:50 +01:00
|
|
|
|
|
|
|
# domain
|
|
|
|
LOCAL_DOMAIN={{ mastodon_host }}
|
2022-11-22 13:23:26 +01:00
|
|
|
WEB_DOMAIN={{ mastodon_web_domain }}
|
|
|
|
ALTERNATE_DOMAINS={{ mastodon_alternate_domains }}
|
|
|
|
|
|
|
|
AUTHORIZED_FETCH={{ mastodon_authorized_fetch }}
|
|
|
|
LIMITED_FEDERATION_MODE={{ mastodon_limited_federation }}
|
2022-11-19 21:55:50 +01:00
|
|
|
|
|
|
|
# redirect to the first profile
|
2022-11-20 19:18:50 +01:00
|
|
|
SINGLE_USER_MODE={{ single_user_mode }}
|
|
|
|
|
2022-11-22 13:24:43 +01:00
|
|
|
# federation options
|
2022-11-20 19:18:50 +01:00
|
|
|
LIMITED_FEDERATION_MODE={{ limited_federation_mode }}
|
|
|
|
DISALLOW_UNAUTHENTICATED_API_ACCESS={{ disabllow_unauthenticated_api_access }}
|
2022-11-19 21:55:50 +01:00
|
|
|
|
|
|
|
# do not serve static files
|
|
|
|
RAILS_SERVE_STATIC_FILES=false
|
|
|
|
|
|
|
|
# concurrency
|
2022-11-20 19:18:50 +01:00
|
|
|
WEB_CONCURRENCY={{ web_concurrency }}
|
|
|
|
MAX_THREADS={{ max_threads }}
|
2022-11-19 21:55:50 +01:00
|
|
|
|
|
|
|
# pgbouncer
|
|
|
|
#PREPARED_STATEMENTS=false
|
|
|
|
|
|
|
|
# locale
|
2022-11-20 19:18:50 +01:00
|
|
|
DEFAULT_LOCALE={{ default_locale }}
|
2022-11-19 21:55:50 +01:00
|
|
|
|
|
|
|
# email, not used
|
|
|
|
SMTP_SERVER={{ smtp_server }}
|
|
|
|
SMTP_PORT={{ smtp_port | default(587) }}
|
|
|
|
SMTP_LOGIN={{ smtp_login | default('') }}
|
|
|
|
SMTP_PASSWORD={{ smtp_password | default('') }}
|
|
|
|
SMTP_FROM_ADDRESS={{ smtp_from_address }}
|
|
|
|
|
|
|
|
# secrets
|
|
|
|
SECRET_KEY_BASE=
|
|
|
|
OTP_SECRET=
|
|
|
|
|
|
|
|
VAPID_PRIVATE_KEY=
|
|
|
|
VAPID_PUBLIC_KEY=
|
2022-11-24 08:53:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
# postgresql configuration
|
|
|
|
POSTGRES_USER={{ mastodon_db_user }}
|
2022-11-24 08:57:12 +01:00
|
|
|
POSTGRES_DB={{ mastodon_db }}_{{ mastodon_environment }}
|
2022-11-24 08:53:59 +01:00
|
|
|
POSTGRES_PASSWORD={{ mastodon_db_password }}
|
2023-07-09 16:19:59 +02:00
|
|
|
# POSTGRES_HOST_AUTH_METHOD=trust
|
2022-11-24 08:53:59 +01:00
|
|
|
|
|
|
|
# pgbouncer configuration
|
|
|
|
#POOL_MODE=transaction
|
|
|
|
#ADMIN_USERS=postgres,mastodon
|
2022-11-24 08:57:12 +01:00
|
|
|
#DATABASE_URL="postgres://{{ mastodon_db_user }}:{{ mastodon_db_password }}@postgresql:5432/{{ mastodon_db }}_{{ mastodon_environment }}"
|
2022-11-24 08:53:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
# mastodon database configuration
|
|
|
|
#DB_HOST=pgbouncer
|
|
|
|
DB_HOST={{ mastodon_db_login_unix_socket }}
|
|
|
|
DB_USER={{ mastodon_db_user }}
|
2022-11-24 09:53:53 +01:00
|
|
|
DB_NAME={{ mastodon_db }}_{{ mastodon_environment }}
|
2022-11-24 08:53:59 +01:00
|
|
|
DB_PASS={{ mastodon_db_password }}
|
|
|
|
DB_PORT=5432
|
|
|
|
|
|
|
|
REDIS_HOST={{ redis_host }}
|
|
|
|
REDIS_PORT={{ redis_port }}
|
|
|
|
|
2023-07-31 08:17:51 +02:00
|
|
|
{% if redis_volatile %}
|
2023-07-09 00:40:25 +02:00
|
|
|
CACHE_REDIS_HOST={{ redis_cache_host }}
|
|
|
|
CACHE_REDIS_PORT={{ redis_cache_port }}
|
2023-07-31 08:17:51 +02:00
|
|
|
{% endif %}
|
2022-11-24 08:53:59 +01:00
|
|
|
|
2022-11-24 08:57:12 +01:00
|
|
|
# elasticsearch
|
|
|
|
ES_JAVA_OPTS=-Xms512m -Xmx512m
|
|
|
|
ELASTIC_PASSWORD={{ es_pass }}
|
|
|
|
|
2022-11-24 08:53:59 +01:00
|
|
|
ES_ENABLED={{ es_enabled }}
|
|
|
|
ES_HOST={{ es_host }}
|
|
|
|
ES_PORT={{ es_port }}
|
|
|
|
# Authentication for ES (optional)
|
|
|
|
ES_USER={{ es_user }}
|
|
|
|
ES_PASS={{ es_pass }}
|
2023-07-07 20:51:29 +02:00
|
|
|
|
2023-07-31 08:17:51 +02:00
|
|
|
{% if allow_hidden_services %}
|
2023-07-07 20:51:29 +02:00
|
|
|
# Tor
|
|
|
|
http_proxy=http://privoxy:8118
|
|
|
|
ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
|
2023-07-31 08:17:51 +02:00
|
|
|
{% endif %}
|
2023-07-08 09:28:46 +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
|