From b2a6429823d105225ba6e0f9f35fb58cac570cb7 Mon Sep 17 00:00:00 2001 From: Mathias Merscher Date: Sun, 10 Mar 2019 14:40:33 +0100 Subject: [PATCH] adds template variable for SHOW_REGISTRATION_BUTTON --- defaults/main.yml | 1 + templates/gitea.ini.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index e3ca04e..fa197b1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -33,6 +33,7 @@ gitea_internal_token: SomethingVeryLong gitea_show_user_email: false gitea_disable_gravatar: true gitea_disable_registration: false +gitea_show_registration_button: true gitea_require_signin: true gitea_enable_captcha: true diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index 89c64af..5955b3b 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -383,7 +383,7 @@ DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true ; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS. NO_REPLY_ADDRESS = noreply.example.org ; Show Registration button -SHOW_REGISTRATION_BUTTON = false +SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button }} ; Default value for AutoWatchNewRepos ; When adding a repo to a team or creating a new repo all team members will watch the ; repo automatically if enabled