Added more variables for the application

This commit is contained in:
Antonio J. Delgado 2022-11-20 20:18:50 +02:00
parent 43b0f88686
commit 7a99bbd06a
2 changed files with 14 additions and 4 deletions

View file

@ -79,6 +79,13 @@ aws_access_key_id: ''
aws_secret_access_key: ''
s3_alias_host: ''
limited_federation_mode: 'false'
disabllow_unauthenticated_api_access: 'false'
single_user_mode: 'true'
web_concurrency: 2
max_threads: 5
default_locale: en
ubuntu_codename: "{{ ansible_distribution_release }}"
mastodon_db_login_unix_socket: postgresql # "/var/run/postgresql"

View file

@ -6,20 +6,23 @@ NODE_ENV=production
LOCAL_DOMAIN={{ mastodon_host }}
# redirect to the first profile
SINGLE_USER_MODE=true
SINGLE_USER_MODE={{ single_user_mode }}
LIMITED_FEDERATION_MODE={{ limited_federation_mode }}
DISALLOW_UNAUTHENTICATED_API_ACCESS={{ disabllow_unauthenticated_api_access }}
# do not serve static files
RAILS_SERVE_STATIC_FILES=false
# concurrency
WEB_CONCURRENCY=2
MAX_THREADS=5
WEB_CONCURRENCY={{ web_concurrency }}
MAX_THREADS={{ max_threads }}
# pgbouncer
#PREPARED_STATEMENTS=false
# locale
DEFAULT_LOCALE=en
DEFAULT_LOCALE={{ default_locale }}
# email, not used
SMTP_SERVER={{ smtp_server }}