From 6f2394e9dcffbb8e72cfb0b25553b6a7e6f82662 Mon Sep 17 00:00:00 2001 From: saibotk Date: Sat, 28 Jan 2023 20:06:28 +0100 Subject: [PATCH] mastodon: Ensure bools are lowercase in env --- roles/mastodon/templates/.env.production | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mastodon/templates/.env.production b/roles/mastodon/templates/.env.production index 4684d85..7bc3c89 100644 --- a/roles/mastodon/templates/.env.production +++ b/roles/mastodon/templates/.env.production @@ -14,7 +14,7 @@ DB_PORT=5432 {% if mastodon_config.enable_elasticsearch is defined %} # Optional ElasticSearch configuration # You may also set ES_PREFIX to share the same cluster between multiple Mastodon servers (falls back to REDIS_NAMESPACE if not set) -ES_ENABLED={{ mastodon_config.enable_elasticsearch }} +ES_ENABLED={{ mastodon_config.enable_elasticsearch | bool | lower }} ES_HOST=es ES_PORT=9200 {% endif %} @@ -57,7 +57,7 @@ VAPID_PUBLIC_KEY={{ mastodon_config.vapid_public_key }} # Registrations {% if mastodon_config.single_user_mode is defined %} # Single user mode will disable registrations and redirect frontpage to the first profile -SINGLE_USER_MODE={{ mastodon_config.single_user_mode }} +SINGLE_USER_MODE={{ mastodon_config.single_user_mode | bool | lower }} {% endif %} # Prevent registrations with following e-mail domains # EMAIL_DOMAIN_BLACKLIST=example1.com|example2.de|etc