From ce8d7a45fbbb95eeffc7b444e17cb084f43c92c8 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 22 Nov 2022 14:23:26 +0200 Subject: [PATCH] Add more app options --- defaults/main.yml | 5 +++++ templates/application.env.j2 | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 453ea81..e48b4b3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -13,6 +13,11 @@ vapid_private_key: "{{ vault_mastodon_vapid_private_key }}" smtp_from_address: mastodon-admin@example.com smtp_server: mail.example.com mastodon_host: mastodon.example.com +mastodon_web_domain: example.com +mastodon_alternate_domains: '' +mastodon_authorized_fetch: 'false' +mastodon_limited_federation: 'false' +mastodon_default_locale: 'en' #Use HTTP only for Vagrant testing or for reverse proxy purposes. use_http: true ansible_python_interpreter: "/usr/bin/python2" diff --git a/templates/application.env.j2 b/templates/application.env.j2 index 65a65b3..22fac16 100644 --- a/templates/application.env.j2 +++ b/templates/application.env.j2 @@ -4,12 +4,18 @@ NODE_ENV=production # domain LOCAL_DOMAIN={{ mastodon_host }} +WEB_DOMAIN={{ mastodon_web_domain }} +ALTERNATE_DOMAINS={{ mastodon_alternate_domains }} + +AUTHORIZED_FETCH={{ mastodon_authorized_fetch }} +LIMITED_FEDERATION_MODE={{ mastodon_limited_federation }} # redirect to the first profile SINGLE_USER_MODE={{ single_user_mode }} LIMITED_FEDERATION_MODE={{ limited_federation_mode }} DISALLOW_UNAUTHENTICATED_API_ACCESS={{ disabllow_unauthenticated_api_access }} +DEFAULT_LOCALE={{ mastodon_default_locale }} # do not serve static files RAILS_SERVE_STATIC_FILES=false