From 7a99bbd06ab1833244ad8db1dc68289cccc567b5 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sun, 20 Nov 2022 20:18:50 +0200 Subject: [PATCH] Added more variables for the application --- defaults/main.yml | 7 +++++++ templates/application.env.j2 | 11 +++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 3feed17..7617e82 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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" diff --git a/templates/application.env.j2 b/templates/application.env.j2 index 2c4e60f..65a65b3 100644 --- a/templates/application.env.j2 +++ b/templates/application.env.j2 @@ -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 }}