129 lines
4.4 KiB
Django/Jinja
129 lines
4.4 KiB
Django/Jinja
# 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_domain }}
|
|
{% if mastodon_web_domain|default(false, true) %}
|
|
WEB_DOMAIN={{ mastodon_web_domain }}
|
|
{% endif %}
|
|
|
|
# Redis
|
|
# -----
|
|
{% if mastodon_redis_host|default(false, true) %}
|
|
REDIS_HOST={{ mastodon_redis_host }}
|
|
{% endif %}
|
|
{% if mastodon_redis_port|default(false, true) %}
|
|
REDIS_PORT={{ mastodon_redis_port }}
|
|
{% endif %}
|
|
{% if mastodon_redis_url %}
|
|
REDIS_URL={{ mastodon_redis_url }}
|
|
{% endif %}
|
|
{% if mastodon_redis_password %}
|
|
REDIS_PASSWORD={{ mastodon_redis_password }}
|
|
{% endif %}
|
|
{% if mastodon_redis_db_index %}
|
|
REDIS_DB_INDEX={{ mastodon_redis_db_index }}
|
|
{% endif %}
|
|
|
|
# PostgreSQL
|
|
# ----------
|
|
DB_HOST={{ mastodon_database_host }}
|
|
DB_USER={{ mastodon_database_user }}
|
|
DB_NAME={{ mastodon_database_name }}
|
|
DB_PASS={{ mastodon_database_pass }}
|
|
DB_PORT={{ mastodon_database_port }}
|
|
|
|
# Elasticsearch (optional)
|
|
# ------------------------
|
|
ES_ENABLED={{ mastodon_elasticsearch_enabled }}
|
|
ES_HOST={{ mastodon_elasticsearch_host }}
|
|
ES_PORT={{ mastodon_elasticsearch_port }}
|
|
# Authentication for ES (optional)
|
|
{% if mastodon_elasticsearch_user %}
|
|
ES_USER={{ mastodon_elasticsearch_user }}
|
|
{% endif %}
|
|
{% if mastodon_elasticsearch_pass %}
|
|
ES_PASS={{ mastodon_elasticsearch_pass }}
|
|
{% endif %}
|
|
|
|
# Secrets
|
|
# -------
|
|
# Make sure to use `rake secret` to generate secrets
|
|
# -------
|
|
SECRET_KEY_BASE={{ mastodon_secret_key }}
|
|
OTP_SECRET={{ mastodon_otp_secret }}
|
|
|
|
# Web Push
|
|
# --------
|
|
# Generate with `rake mastodon:webpush:generate_vapid_key`
|
|
# --------
|
|
VAPID_PRIVATE_KEY={{ mastodon_vapid_private_key }}
|
|
VAPID_PUBLIC_KEY={{ mastodon_vapid_public_key }}
|
|
|
|
# Sending mail
|
|
# ------------
|
|
SMTP_SERVER={{ mastodon_mail_server }}
|
|
SMTP_PORT={{ mastodon_mail_port }}
|
|
SMTP_LOGIN={{ mastodon_mail_user }}
|
|
SMTP_PASSWORD={{ mastodon_mail_password }}
|
|
SMTP_FROM_ADDRESS={{ mastodon_mail_from_address }}
|
|
|
|
# File storage (optional)
|
|
# -----------------------
|
|
S3_ENABLED={{ mastodon_s3_enabled }}
|
|
S3_BUCKET={{ mastodon_s3_bucket }}
|
|
AWS_ACCESS_KEY_ID={{ mastodon_s3_aws_access_key_id }}
|
|
AWS_SECRET_ACCESS_KEY={{ mastodon_s3_aws_secret_access_key }}
|
|
S3_ALIAS_HOST={{ mastodon_s3_alias_host }}
|
|
|
|
# OpenId connect (optional)
|
|
OIDC_ENABLED={{ mastodon_oidc_enabled | bool | string | lower }}
|
|
OIDC_ISSUER={{ mastodon_oidc_issuer_url }}
|
|
OIDC_DISCOVERY={{ mastodon_oidc_discovery | bool | string | lower }}
|
|
OIDC_CLIENT_AUTH_METHOD={{ mastodon_oidc_client_auth_method }}
|
|
OIDC_CLIENT_ID={{ mastodon_oidc_client_id }}
|
|
OIDC_CLIENT_SECRET={{ mastodon_oidc_client_secret }}
|
|
OIDC_SCOPE={{ mastodon_oidc_scope }}
|
|
{% if mastodon_oidc_auth_endpoint %}
|
|
OIDC_AUTH_ENDPOINT={{ mastodon_oidc_auth_endpoint }}
|
|
{% endif %}
|
|
{% if mastodon_oidc_token_endpoint %}
|
|
OIDC_TOKEN_ENDPOINT={{ mastodon_oidc_token_endpoint }}
|
|
{% endif %}
|
|
{% if mastodon_oidc_user_info_endpoint %}
|
|
OIDC_USER_INFO_ENDPOINT={{ mastodon_oidc_user_info_endpoint }}
|
|
{% endif %}
|
|
{% if mastodon_oidc_end_session_endpoint %}
|
|
OIDC_END_SESSION_ENDPOINT={{ mastodon_oidc_end_session_endpoint }}
|
|
{% endif %}
|
|
{% if mastodon_oidc_jwks_uri %}
|
|
OIDC_JWKS_URI={{ mastodon_oidc_jwks_uri }}
|
|
{% endif %}
|
|
{% if mastodon_oidc_redirect_uri %}
|
|
OIDC_REDIRECT_URI={{ mastodon_oidc_redirect_uri }}
|
|
{% endif %}
|
|
{% if mastodon_oidc_idp_logout_redirect_uri %}
|
|
OIDC_IDP_LOGOUT_REDIRECT_URI={{ mastodon_oidc_idp_logout_redirect_uri }}
|
|
{% endif %}
|
|
OIDC_DISPLAY_NAME={{ mastodon_oidc_display_name }}
|
|
OIDC_UID_FIELD={{ mastodon_oidc_uid_field }}
|
|
{% if mastodon_oidc_response_mode %}
|
|
OIDC_RESPONSE_MODE={{ mastodon_oidc_response_mode }}
|
|
{% endif %}
|
|
{% if mastodon_oidc_response_type %}
|
|
OIDC_RESPONSE_TYPE={{ mastodon_oidc_response_type }}
|
|
{% endif %}
|
|
OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED={{ mastodon_oidc_security_assume_email_is_verified | bool | string | lower }}
|