homelab/roles/mastodon/templates/mastodon.env.j2
Ivan Reshetnikov 7a37edee07
Small mastodon tweaks
1. Increase the number of replicas
2. Specify log level and default locale
3. Use starttls for smtp
4. Remove vapid_public_key from ansible vault
2024-10-21 23:40:41 +05:00

49 lines
1.4 KiB
Django/Jinja

LOCAL_DOMAIN={{ local_domain }}
ALTERNATE_DOMAINS=mcomfyzeyibt2unmkttoxa2li2dzpsljcp3sasrioqsks4ayrl5kk2ad.onion
RAILS_LOG_LEVEL=warn
DEFAULT_LOCALE=ru
REDIS_HOST=redis-mastodon
REDIS_PORT=6379
CACHE_REDIS_HOST=redis-mastodon-cache
CACHE_REDIS_PORT=6379
DB_HOST={{ db_host }}
DB_USER={{ db_user }}
DB_NAME={{ db_name }}
DB_PASS={{ db_pass }}
DB_PORT={{ db_port }}
SECRET_KEY_BASE={{ secret_key_base }}
OTP_SECRET={{ otp_secret }}
VAPID_PRIVATE_KEY={{ vapid_private_key }}
VAPID_PUBLIC_KEY={{ vapid_public_key }}
SMTP_SERVER={{ smtp_server }}
SMTP_PORT={{ smtp_port }}
SMTP_LOGIN={{ smtp_login }}
SMTP_PASSWORD={{ smtp_password }}
SMTP_FROM_ADDRESS={{ smtp_from_address }}
SMTP_ENABLE_STARTTLS=always
S3_ENABLED=true
S3_ENDPOINT={{ s3_endpoint }}
S3_BUCKET={{ s3_bucket }}
AWS_ACCESS_KEY_ID={{ aws_access_key_id }}
AWS_SECRET_ACCESS_KEY={{ aws_secret_access_key }}
S3_PROTOCOL=https
S3_HOSTNAME={{ s3_hostname }}
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY={{ active_record_encryption_deterministic_key }}
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT={{ active_record_encryption_key_derivation_salt }}
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY={{ active_record_encryption_primary_key }}
LDAP_ENABLED=true
LDAP_HOST=comfycamp.space
LDAP_PORT=389
LDAP_METHOD=start_tls
LDAP_BASE=DC=ldap,DC=goauthentik,DC=io
LDAP_BIND_DN=cn=ldapservice,ou=users,dc=ldap,dc=goauthentik,dc=io
LDAP_PASSWORD={{ ldap_password }}