ansible-role-mastodon/templates/env.j2

70 lines
2 KiB
Text
Raw Normal View History

2022-11-19 17:17:16 +01: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
# Federation
# ----------
# This identifies your server and cannot be changed safely later
# ----------
LOCAL_DOMAIN={{ mastodon_host }}
# Redis
# -----
2022-11-19 10:10:57 +01:00
REDIS_HOST={{ redis_host }}
REDIS_PORT={{ redis_port }}
2022-11-19 17:17:16 +01:00
# PostgreSQL
# ----------
2022-11-19 17:01:28 +01:00
DB_HOST={{ mastodon_db_login_unix_socket }}
DB_USER={{ mastodon_db_user }}
DB_NAME={{ mastodon_db }}
DB_PASS={{ mastodon_db_password }}
2022-11-19 17:17:16 +01:00
DB_PORT={{ mastodon_db_port }}
# Elasticsearch (optional)
# ------------------------
ES_ENABLED={{ es_enabled }}
ES_HOST={{ es_host }}
ES_PORT={{ es_port }}
# Authentication for ES (optional)
ES_USER={{ es_user }}
ES_PASS={{ es_pass }}
# Secrets
# -------
# Make sure to use `rake secret` to generate secrets
# -------
SECRET_KEY_BASE=
OTP_SECRET=
# Web Push
# --------
# Generate with `rake mastodon:webpush:generate_vapid_key`
# --------
VAPID_PRIVATE_KEY=
VAPID_PUBLIC_KEY=
# Sending mail
# ------------
2022-11-19 10:10:57 +01:00
SMTP_SERVER={{ smtp_server }}
2022-11-19 17:17:16 +01:00
SMTP_PORT={{ smtp_port | default(587) }}
SMTP_LOGIN={{ smtp_login | default('') }}
SMTP_PASSWORD={{ smtp_password | default('') }}
2022-11-19 10:10:57 +01:00
SMTP_FROM_ADDRESS={{ smtp_from_address }}
2022-11-19 17:17:16 +01:00
# File storage (optional)
# -----------------------
2022-11-19 10:10:57 +01:00
S3_ENABLED={{ s3_enabled }}
S3_BUCKET={{ s3_bucket }}
AWS_ACCESS_KEY_ID={{ aws_access_key_id }}
AWS_SECRET_ACCESS_KEY={{ aws_secret_access_key }}
2022-11-19 17:17:16 +01:00
S3_ALIAS_HOST={{ s3_alias_host}}