1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/mastodon/.env.production

78 lines
2.0 KiB
Plaintext
Raw Normal View History

2022-11-08 05:07:31 +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.
# 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-06-04 11:52:42 +02:00
# Federation
2022-11-08 05:07:31 +02:00
# ----------
# This identifies your server and cannot be changed safely later
# ----------
2020-06-04 11:52:42 +02:00
LOCAL_DOMAIN=example.com
2022-11-08 05:07:31 +02:00
# Redis
# -----
REDIS_HOST=localhost
REDIS_PORT=6379
2020-06-04 11:52:42 +02:00
2022-11-08 05:07:31 +02:00
# PostgreSQL
# ----------
DB_HOST=/var/run/postgresql
DB_USER=mastodon
DB_NAME=mastodon_production
DB_PASS=
DB_PORT=5432
2020-06-04 11:52:42 +02:00
2022-11-08 05:07:31 +02:00
# 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
# -------
2020-06-04 11:52:42 +02:00
SECRET_KEY_BASE=
OTP_SECRET=
2022-11-08 05:07:31 +02:00
# Web Push
# --------
# Generate with `rake mastodon:webpush:generate_vapid_key`
# --------
2020-06-04 11:52:42 +02:00
VAPID_PRIVATE_KEY=
VAPID_PUBLIC_KEY=
2022-11-08 05:07:31 +02:00
# Sending mail
# ------------
2020-06-04 11:52:42 +02:00
SMTP_SERVER=smtp.mailgun.org
SMTP_PORT=587
SMTP_LOGIN=
SMTP_PASSWORD=
SMTP_FROM_ADDRESS=notifications@example.com
2022-11-08 05:07:31 +02:00
# File storage (optional)
# -----------------------
S3_ENABLED=true
S3_BUCKET=files.example.com
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
S3_ALIAS_HOST=files.example.com
# 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