chore: added all env variables for vanilla masto

This commit is contained in:
Roxie Gibson 2021-05-09 17:50:03 +01:00
parent 1e5c3996b0
commit b655514b86
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D
2 changed files with 178 additions and 25 deletions

View File

@ -6,32 +6,28 @@ DOMAIN=mastodon.swarm-test.autonomic.zone
LETS_ENCRYPT_ENV=production LETS_ENCRYPT_ENV=production
# Please look at https://docs.joinmastodon.org/admin/config/ for the full documentation. # Please look at https://docs.joinmastodon.org/admin/config/ for the full documentation.
# This example will exclude explanations to make the file simple.
# Variables you *need* to change will me marked as such.
# Most optional features are commented out/disabled and will need to be enabled by you after checking the documentation.
# Federation # Federation
# This identifies your server and cannot be changed safely later # ----------
# DO NOT CHANGE DOMAIN VARIABLES AFTER DEPLOYMENT! WILL BREAK FEDERATION!!
LOCAL_DOMAIN=$DOMAIN LOCAL_DOMAIN=$DOMAIN
# Use this only if you need to run mastodon on a different domain than the one used for federation.
# You can read more about this option on https://docs.joinmastodon.org/admin/config/#web-domain
# DO *NOT* USE THIS UNLESS YOU KNOW *EXACTLY* WHAT YOU ARE DOING.
#WEB_DOMAIN= #WEB_DOMAIN=
# Use this if you want to have several aliases handler@example1.com
# handler@example2.com etc. for the same user. LOCAL_DOMAIN should not
# be added. Comma separated values
#ALTERNATE_DOMAINS=$EXTRA_DOMAINS #ALTERNATE_DOMAINS=$EXTRA_DOMAINS
# https://docs.joinmastodon.org/admin/config/#authorized_fetch
AUTHORIZED_FETCH=false AUTHORIZED_FETCH=false
# https://docs.joinmastodon.org/admin/config/#limited_federation_mode
LIMITED_FEDERATION_MODE=false LIMITED_FEDERATION_MODE=false
# Deployment # Deployment
# ----------
RAILS_ENV=production RAILS_ENV=production
RAILS_SERVE_STATIC_FILES=true # might need this for traefik, need to test RAILS_SERVE_STATIC_FILES=true # might need this for traefik, need to test
# TRUSTED_PROXY_IP= # TRUSTED_PROXY_IP=
# External Services
# =================
# PostgreSQL # PostgreSQL
# ---------- # ----------
DB_HOST=db DB_HOST=db
@ -40,24 +36,41 @@ DB_NAME=mastodon_production
DB_PASS= DB_PASS=
DB_PORT=5432 DB_PORT=5432
# Redis
# -----
REDIS_HOST=redis REDIS_HOST=redis
REDIS_PORT=6379 REDIS_PORT=6379
# REDIS_URL=
# REDIS_NAMESPACE=
# CACHE_REDIS_HOST=
# CACHE_REDIS_PORT=
# CACHE_REDIS_URL=
# CACHE_REDIS_NAMESPACE=
# ElasticSearch (optional) # ElasticSearch (CURRENTLY NOT SUPPORTED)
# ------------------------ # --------------------------------------
ES_ENABLED=false ES_ENABLED=false
# ES_HOST=localhost # ES_HOST=localhost
# ES_PORT=9200 # ES_PORT=9200
# ES_PREFIX=
# StatsD (CURRENTLY NOT SUPPORTED)
# -------------------------------
STATSD_ADDR
STATSD_NAMESPACE
# Secrets # Secrets
# =======
SECRET_KEY_BASE= SECRET_KEY_BASE=
OTP_SECRET= OTP_SECRET=
# Web Push # Web Push
# ========
VAPID_PRIVATE_KEY= VAPID_PRIVATE_KEY=
VAPID_PUBLIC_KEY= VAPID_PUBLIC_KEY=
# Limits # Limits
# ======
SINGLE_USER_MODE=false SINGLE_USER_MODE=false
# EMAIL_DOMAIN_ALLOWLIST= # EMAIL_DOMAIN_ALLOWLIST=
# EMAIL_DOMAIN_DENYLIST= # EMAIL_DOMAIN_DENYLIST=
@ -66,19 +79,87 @@ DEFAULT_LOCALE=en
# USER_ACTIVE_DAYS= # USER_ACTIVE_DAYS=
# Sending mail # Sending mail
# ------------ # ============
# SMTP_SERVER=smtp.mailgun.org # SMTP_SERVER=
# SMTP_PORT=587 # SMTP_PORT=
# SMTP_LOGIN= # SMTP_LOGIN=
# SMTP_PASSWORD= # SMTP_PASSWORD=
# SMTP_FROM_ADDRESS=notificatons@example.com # SMTP_FROM_ADDRESS=
# SMTP_DOMAIN=
# SMTP_DELIVERY_METHOD=
# SMTP_AUTH_METHOD=
# SMTP_CA_FILE=
# SMTP_OPENSSL_VERIFY_MODEv
# SMTP_ENABLE_STARTTLS_AUTO=
# SMTP_TLS=
# SMTP_SSL=
# File storage (optional) # File storage (optional)
# ----------------------- # =======================
# CDN_HOST= # CDN_HOST=
S3_ENABLED=false # Papercllp (CURRENTLY NOT SUPPORTED)
# S3_BUCKET=files.example.com # ----------------------------------
# PAPERCLIP_ROOT_PATH=
# PAPERCLIP_ROOT_URL=
# S3 and AWS
# ----------
# S3_ENABLED=
# S3_BUCKET=
# AWS_ACCESS_KEY_ID= # AWS_ACCESS_KEY_ID=
# AWS_SECRET_ACCESS_KEY= # AWS_SECRET_ACCESS_KEY=
# S3_ALIAS_HOST=files.example.com # S3_REGION=
# S3_PROTOCOL=
# S3_HOSTNAME=
# S3_ENDPOINT=
# S3_SIGNATURE_VERSION=
# S3_OVERRIDE_PATH_STYLE=
# S3_OPEN_TIMEOUT=
# S3_READ_TIMEOUT=
# External Authentication
# =======================
# OAUTH_REDIRECT_AT_SIGN_IN=
# LDAP
# ----
# LDAP_ENABLED=
# LDAP_HOST=
# LDAP_PORT=
# LDAP_METHOD=
# LDAP_BASE=
# LDAP_BIND_DN=
# LDAP_PASSWORDv
# LDAP_UID=
# LDAP_SEARCH_FILTER=
# LDAP_MAIL=
# LDAP_UID_CONVERSTION_ENABLED=
# SAML
# ----
# SAML_ENABLED=
# SAML_ACS_URL=
# SAML_ISSUER=
# SAML_IDP_SSO_TARGET_URL=
# SAML_IDP_CERT=
# SAML_IDP_CERT_FINGERPRINT=
# SAML_NAME_IDENTIFIER_FORMAT=
# SAML_CERT=
# SAML_PRIVATE_KEY=
# SAML_SECURITY_WANT_ASSERTION_SIGNED=
# SAML_SECURITY_WANT_ASSERTION_ENCRYPTED=
# SAML_SECURITY_ASSUME_EMAIL_IS_VERIFIED=
# SAML_ATTRIBUTES_STATEMENTS_UID=
# SAML_ATTRIBUTES_STATEMENTS_EMAIL=
# SAML_ATTRIBUTES_STATEMENTS_FULL_NAME=
# SAML_ATTRIBUTES_STATEMENTS_FIRST_NAME=
# SAML_ATTRIBUTES_STATEMENTS_LAST_NAME=
# SAML_UID_ATTRIBUTE=
# SAML_ATTRIBUTES_STATEMENTS_VERIFIED=
# SAML_ATTRIBUTES_STATEMENTS_VERIFIED_EMAIL=
# Hidden services (Not Supported)
# ===============================
# http_proxy=
# ALLOW_ACCESS_TO_HIDDEN_SERVICE=

View File

@ -2,7 +2,6 @@
version: "3.8" version: "3.8"
services: services:
db: db:
image: postgres:9.6-alpine image: postgres:9.6-alpine
networks: &internalNetwork networks: &internalNetwork
@ -83,11 +82,84 @@ services:
- DB_PORT - DB_PORT
- REDIS_HOST - REDIS_HOST
- REDIS_PORT - REDIS_PORT
- REDIS_URL=
- REDIS_NAMESPACE
- CACHE_REDIS_HOST
- CACHE_REDIS_PORT
- CACHE_REDIS_URL
- CACHE_REDIS_NAMESPACE
- ES_ENABLED
- ES_HOST
- ES_PORT
- ES_PREFIX
- STATSD_ADDR
- STATSD_NAMESPACE
- VAPID_PRIVATE_KEY - VAPID_PRIVATE_KEY
- VAPID_PUBLIC_KEY - VAPID_PUBLIC_KEY
- OTP_SECRET - OTP_SECRET
- SECRET_KEY_BASE - SECRET_KEY_BASE
- LOCAL_DOMAIN - LOCAL_DOMAIN
- WEB_DOMAIN
- ALTERNATE_DOMAINS
- AUTHORIZED_FETCH
- LIMITED_FEDERATION_MODE
- RAILS_ENV
- RAILS_SERVE_STATIC_FILES
- SINGLE_USER_MODE
- EMAIL_DOMAIN_ALLOWLIST
- EMAIL_DOMAIN_DENYLIST
- DEFAULT_LOCALE
- MAX_SESSION_ACTIVATIONS
- USER_ACTIVE_DAYS
- SMTP_SERVER
- SMTP_PORT
- SMTP_LOGIN
- SMTP_PASSWORD
- SMTP_FROM_ADDRESS
- SMTP_DOMAIN
- SMTP_DELIVERY_METHOD
- SMTP_AUTH_METHOD
- SMTP_CA_FILE
- SMTP_OPENSSL_VERIFY_MODE
- SMTP_ENABLE_STARTTLS_AUTO
- SMTP_TLS
- SMTP_SSL
- PAPERCLIP_ROOT_PATH
- PAPERCLIP_ROOT_URL
- OAUTH_REDIRECT_AT_SIGN_IN
- LDAP_ENABLED
- LDAP_HOST
- LDAP_PORT
- LDAP_METHOD
- LDAP_BASE
- LDAP_BIND_DN
- LDAP_PASSWORD
- LDAP_UID
- LDAP_SEARCH_FILTER
- LDAP_MAIL
- LDAP_UID_CONVERSTION_ENABLED
- SAML_ENABLED
- SAML_ACS_URL
- SAML_ISSUER
- SAML_IDP_SSO_TARGET_URL
- SAML_IDP_CERT
- SAML_IDP_CERT_FINGERPRINT
- SAML_NAME_IDENTIFIER_FORMAT
- SAML_CERT
- SAML_PRIVATE_KEY
- SAML_SECURITY_WANT_ASSERTION_SIGNED
- SAML_SECURITY_WANT_ASSERTION_ENCRYPTED
- SAML_SECURITY_ASSUME_EMAIL_IS_VERIFIED
- SAML_ATTRIBUTES_STATEMENTS_UID
- SAML_ATTRIBUTES_STATEMENTS_EMAIL
- SAML_ATTRIBUTES_STATEMENTS_FULL_NAME
- SAML_ATTRIBUTES_STATEMENTS_FIRST_NAME
- SAML_ATTRIBUTES_STATEMENTS_LAST_NAME
- SAML_UID_ATTRIBUTE
- SAML_ATTRIBUTES_STATEMENTS_VERIFIED
- SAML_ATTRIBUTES_STATEMENTS_VERIFIED_EMAIL
- http_proxy
- ALLOW_ACCESS_TO_HIDDEN_SERVICE
streaming: streaming:
image: *image image: *image