2024-01-18 18:14:17 -08: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
|
|
|
|
|
|
|
|
# Federation
|
|
|
|
# ----------
|
|
|
|
# This identifies your server and cannot be changed safely later
|
|
|
|
# ----------
|
|
|
|
LOCAL_DOMAIN={{domain_name}}
|
|
|
|
ALTERNATE_DOMAINS={{alternate_domains}}
|
|
|
|
|
|
|
|
# Redis
|
|
|
|
# -----
|
|
|
|
REDIS_HOST=mastodon_redis
|
|
|
|
REDIS_PORT=6379
|
|
|
|
|
|
|
|
# PostgreSQL
|
|
|
|
# ----------
|
|
|
|
DB_HOST=mastodon_db
|
|
|
|
DB_USER=postgres
|
|
|
|
DB_NAME=mastodon_production
|
|
|
|
DB_PASS={{db_password}}
|
|
|
|
DB_PORT=5432
|
|
|
|
|
|
|
|
POSTGRES_USER=postgres
|
|
|
|
POSTGRES_PASSWORD={{db_password}}
|
|
|
|
POSTGRES_DB=mastodon_production
|
|
|
|
|
|
|
|
|
|
|
|
## Elasticsearch (optional)
|
|
|
|
## ------------------------
|
|
|
|
#ES_ENABLED=true
|
|
|
|
#ES_HOST=localhost
|
|
|
|
#ES_PORT=9200
|
|
|
|
## Authentication for ES (optional)
|
|
|
|
#ES_USER=elastic
|
|
|
|
#ES_PASS=password
|
|
|
|
|
|
|
|
# Secrets
|
|
|
|
# -------
|
|
|
|
# Make sure to use `rake secret` to generate secrets
|
|
|
|
# -------
|
|
|
|
SECRET_KEY_BASE={{secret_key_base}}
|
|
|
|
OTP_SECRET={{otp_secret}}
|
|
|
|
{{vapid_secrets}}
|
|
|
|
|
|
|
|
# Sending mail
|
|
|
|
# ------------
|
2024-01-22 19:27:29 -08:00
|
|
|
SMTP_SERVER=email-smtp.{{aws_region}}.amazonaws.com
|
|
|
|
SMTP_PORT=465
|
2024-01-18 18:14:17 -08:00
|
|
|
SMTP_FROM_ADDRESS=Mastodon <notifications@{{domain_name}}>
|
2024-01-22 19:27:29 -08:00
|
|
|
SMTP_LOGIN={{ses_iam_id}}
|
|
|
|
SMTP_PASSWORD={{ses_iam_secret}}
|
|
|
|
SMTP_ENABLE_STARTTLS_AUTO=false
|
|
|
|
SMTP_TLS=true
|
|
|
|
SMTP_AUTH_METHOD=plain
|
2024-01-18 18:14:17 -08:00
|
|
|
SMTP_OPENSSL_VERIFY_MODE=none
|
2024-01-22 19:27:29 -08:00
|
|
|
SMTP_ENABLE_STARTTLS=never
|
2024-01-18 18:14:17 -08:00
|
|
|
|
|
|
|
## File storage (optional)
|
|
|
|
## -----------------------
|
|
|
|
# teh-entar-net-mastodon-media.us-southeast-1.linodeobjects.com
|
|
|
|
S3_ENABLED=true
|
|
|
|
S3_BUCKET={{s3_bucket_name}}
|
|
|
|
AWS_ACCESS_KEY_ID={{s3_iam_id}}
|
|
|
|
AWS_SECRET_ACCESS_KEY={{s3_iam_secret}}
|
|
|
|
#S3_ALIAS_HOST=
|
|
|
|
S3_REGION={{aws_region}}
|
|
|
|
S3_PROTOCOL=https
|
|
|
|
#S3_HOSTNAME=teh-entar-net-mastodon-media.us-southeast-1.linodeobjects.com
|
|
|
|
S3_HOSTNAME={{s3_hostname}}
|
|
|
|
#S3_ENDPOINT=#{#{s3_endpoint#}#}
|
|
|
|
S3_OVERRIDE_PATH_STYLE=true
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
STATSD_ADDR=statsd:9125
|
|
|
|
|
|
|
|
ACTIVITY_API_ENABLED=false
|
|
|
|
PEERS_API_ENABLED=false
|
|
|
|
|
|
|
|
RAILS_LOG_TO_STDOUT=enabled
|
|
|
|
RAILS_LOG_LEVEL=info
|
|
|
|
|