summaryrefslogtreecommitdiffstats
path: root/mastodon/mastodon.env
blob: 62dea64ca1b2e26690fdcdaa7a4c8982672b0616 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# This is a sample configuration file. You can generate your configuration
# with the  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.

# Note that this file accepts slightly different syntax depending on whether
# you are using  or not. In particular, if you use
# , the value of each declared variable will be taken verbatim,
# including surrounding quotes.
# See: https://github.com/mastodon/mastodon/issues/16895

# General
# -------
DEFAULT_LOCALE=zh-CN
RAILS_LOG_LEVEL=warn
RAILS_SERVE_STATIC_FILES=true
SINGLE_USER_MODE=false
CDN_HOST=https://mastodon.yourdomain.com
# -------

# Scaling Options
# ---------------
SIDEKIQ_CONCURRENCY=8
WEB_CONCURRENCY=4
MAX_THREADS=10
PERSISTENT_TIMEOUT=25
STREAMING_API_BASE_URL=https://mastodon.yourdomain.com
STREAMING_CLUSTER_NUM=4
# ---------------

# Federation
# ----------
# This identifies your server and cannot be changed safely later
# ----------
LOCAL_DOMAIN=mastodon.yourdomain.com

# Redis
# -----
REDIS_HOST=redis
REDIS_PORT=6379

# PostgreSQL
# ----------
DB_HOST=db
DB_USER=mastodon
DB_NAME=mastodon
DB_PASS=
DB_PORT=5432

# Elasticsearch (optional)
# ------------------------
ES_ENABLED=true
ES_HOST=elasticsearch
ES_PORT=9200
# Authentication for ES (optional)
#ES_USER=elastic
#ES_PASS=password

# Secrets
# -------
SECRET_KEY_BASE=
# MFA secret
OTP_SECRET=f

# Web Push
# --------
VAPID_PRIVATE_KEY=
VAPID_PUBLIC_KEY=

# Sending mail
# ------------
SMTP_SERVER=smtp.xxx.com
SMTP_PORT=465
[email protected]
SMTP_PASSWORD=
SMTP_TLS=true
SMTP_FROM_ADDRESS='Mastodon <[email protected]>'

# File storage (optional)
# -----------------------
S3_ENABLED=true
S3_PROTOCOL=https
S3_ENDPOINT=https://s3.xxx.com
S3_ALIAS_HOST=cdn.xxx.com
S3_BUCKET=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

# 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