From eae97486e9904691d7613d9ba9347a888da72062 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 19 Jul 2019 17:55:11 +0200 Subject: [PATCH] quote string bools --- defaults/main.yml | 10 +++++----- templates/custom/conf/app.ini.j2 | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 52b86ad..680a598 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -27,13 +27,13 @@ gitea_bind_ip: 127.0.0.1 gitea_bind_port: 61000 gitea_listen_address: http://gitea.example.com -gitea_install_lock: true +gitea_install_lock: "true" ## Change this to a unique string gitea_secret: "1234567ABCDEFG" gitea_token: "akslkaldasasifiuvsiasfa7s7f8as7f8asd" gitea_run_mode: prod gitea_landing_page: explore -gitea_disable_registration: true +gitea_disable_registration: "true" gitea_postgres_enabled: False gitea_postgres_ssl_mode: disabled @@ -80,8 +80,8 @@ gitea_open_ports: gitea_global_log_level: Info gitea_global_log_dir: "{{ gitea_base_dir }}/log" gitea_file_log_level: "{{ gitea_global_log_level }}" -gitea_file_log_rotate_enabled: True -gitea_file_log_rotate_daily_enabled: True +gitea_file_log_rotate_enabled: "true" +gitea_file_log_rotate_daily_enabled: "true" gitea_file_log_rotate_max_days: 7 gitea_repository_upload_max_filesize: 3 @@ -96,7 +96,7 @@ gitea_no_reply_address: noreply.example.org gitea_oauth_provider_enabled: False gitea_access_token_expiration_time: 3600 gitea_refresh_token_expiration_time: 730 -gitea_invalidate_refresh_tokens: False +gitea_invalidate_refresh_tokens: "false" ## OAuth2 authentication secret for access and refresh tokens ## Change this to a unique string gitea_jwt_secret: Bk0yK7Y9g_p56v86KaHqjSbxvNvu3SbKoOdOt2ZcXvU diff --git a/templates/custom/conf/app.ini.j2 b/templates/custom/conf/app.ini.j2 index eee24fd..f64493d 100644 --- a/templates/custom/conf/app.ini.j2 +++ b/templates/custom/conf/app.ini.j2 @@ -179,10 +179,10 @@ REDIRECT_MACARON_LOG = false [log.file] LEVEL = {{ gitea_file_log_level }} -LOG_ROTATE = {{ gitea_file_log_rotate_enabled | lower }} +LOG_ROTATE = {{ gitea_file_log_rotate_enabled }} MAX_LINES = 1000000 MAX_SIZE_SHIFT = 28 -DAILY_ROTATE = {{ gitea_file_log_rotate_daily_enabled | lower }} +DAILY_ROTATE = {{ gitea_file_log_rotate_daily_enabled }} MAX_DAYS = {{ gitea_file_log_rotate_max_days }} [cron] @@ -230,7 +230,7 @@ TOKEN = ENABLE = true ACCESS_TOKEN_EXPIRATION_TIME = {{ gitea_access_token_expiration_time }} REFRESH_TOKEN_EXPIRATION_TIME = {{ gitea_refresh_token_expiration_time }} -INVALIDATE_REFRESH_TOKENS = {{ gitea_invalidate_refresh_tokens | lower }} +INVALIDATE_REFRESH_TOKENS = {{ gitea_invalidate_refresh_tokens }} JWT_SECRET = {{ gitea_jwt_secret }} {% else %} [oauth2]