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