diff --git a/README.md b/README.md index f0e79d7..e600240 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ The following code has been tested with Debian 8, it should work on Ubuntu as we * `gitea_disable_gravatar`: Do you want to disable Gravatar ? (privacy and so on) (true/false) * `gitea_offline_mode`: Same but for disabling CDNs for frontend assets (true/false) * `gitea_disable_registration`: Do you want to disable user registration ? (true/false) +* `gitea_only_allow_external_registration`: Do you want to force registration only using third-party services ? (true/false) * `gitea_show_registration_button`: Do you want to show the registration button? (true/false) * `gitea_require_signin`: Do you require a signin to see repo's (even public ones) ? (true/false) * `gitea_enable_captcha`: Do you want to enable captcha's ? (true/false) diff --git a/defaults/main.yml b/defaults/main.yml index 919797b..f301092 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -42,6 +42,7 @@ gitea_disable_registration: false gitea_show_registration_button: true gitea_require_signin: true gitea_enable_captcha: true +gitea_only_allow_external_registration: false gitea_force_private: false diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index e8412d4..b0dd770 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -111,6 +111,7 @@ RECAPTCHA_SECRET = RECAPTCHA_SITEKEY = ; Show Registration button SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button }} +ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ gitea_only_allow_external_registration }} [mailer] ENABLED = {{ gitea_mailer_enabled }}