From 3a4b68fed7fe21916d701d129ddee8e2a6acd770 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 12 Apr 2021 00:49:03 +0200 Subject: [PATCH] add ternary to more boolean options --- templates/gitea.ini.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index a9fc128..d394e3a 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -157,13 +157,13 @@ LEVEL = {{ gitea_log_level }} ; ; -> https://docs.gitea.io/en-us/config-cheat-sheet/#metrics-metrics [metrics] -ENABLED = {{ gitea_metrics_enabled }} +ENABLED = {{ gitea_metrics_enabled | ternary('true', 'false') }} TOKEN = {{ gitea_metrics_token }} ; ; ; https://docs.gitea.io/en-us/config-cheat-sheet/#oauth2-oauth2 [oauth2] -ENABLE = {{ gitea_oauth2_enabled }} +ENABLE = {{ gitea_oauth2_enabled | ternary('true', 'false') }} JWT_SECRET = {{ gitea_oauth2_jwt_secret }} {{ gitea_oauth2_extra_config }} ;