Skip to content

Commit

Permalink
Merge pull request #25 from roles-ansible/DO1JLR-patch-1
Browse files Browse the repository at this point in the history
add ternary to more boolean options
  • Loading branch information
DO1JLR authored Apr 11, 2021
2 parents 9391914 + a16f860 commit 26b4afd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/gitea.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ REPO_INDEXER_ENABLED = {{ gitea_repo_indexer_enabled | ternary('true',
REPO_INDEXER_PATH = {{ gitea_home }}/indexers/repos.bleve
REPO_INDEXER_INCLUDE = {{ gitea_repo_indexer_include }}
REPO_INDEXER_EXCLUDE = {{ gitea_repo_indexer_exclude }}
REPO_INDEXER_EXCLUDE_VENDORED = {{ gitea_repo_exclude_vendored }}
REPO_INDEXER_EXCLUDE_VENDORED = {{ gitea_repo_exclude_vendored | ternary('true', 'false') }}
MAX_FILE_SIZE = {{ gitea_repo_indexer_max_file_size }}
{{ gitea_indexer_extra_config }}
;
Expand Down Expand Up @@ -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 }}
;
Expand Down

0 comments on commit 26b4afd

Please sign in to comment.