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