1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

add ternary to more boolean options

This commit is contained in:
L3D 2021-04-12 00:49:03 +02:00 committed by GitHub
parent 9391914d12
commit 3a4b68fed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,13 +157,13 @@ LEVEL = {{ gitea_log_level }}
; ;
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#metrics-metrics ; -> https://docs.gitea.io/en-us/config-cheat-sheet/#metrics-metrics
[metrics] [metrics]
ENABLED = {{ gitea_metrics_enabled }} ENABLED = {{ gitea_metrics_enabled | ternary('true', 'false') }}
TOKEN = {{ gitea_metrics_token }} TOKEN = {{ gitea_metrics_token }}
; ;
; ;
; https://docs.gitea.io/en-us/config-cheat-sheet/#oauth2-oauth2 ; https://docs.gitea.io/en-us/config-cheat-sheet/#oauth2-oauth2
[oauth2] [oauth2]
ENABLE = {{ gitea_oauth2_enabled }} ENABLE = {{ gitea_oauth2_enabled | ternary('true', 'false') }}
JWT_SECRET = {{ gitea_oauth2_jwt_secret }} JWT_SECRET = {{ gitea_oauth2_jwt_secret }}
{{ gitea_oauth2_extra_config }} {{ gitea_oauth2_extra_config }}
; ;