1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

add variable gitea_only_allow_external_registration

This commit is contained in:
Simeon Keske 2020-05-10 04:18:59 +02:00 committed by Thomas Maurice
parent 1f88e7238a
commit 259d761eb2
3 changed files with 3 additions and 0 deletions

View file

@ -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_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_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_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_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_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) * `gitea_enable_captcha`: Do you want to enable captcha's ? (true/false)

View file

@ -42,6 +42,7 @@ gitea_disable_registration: false
gitea_show_registration_button: true gitea_show_registration_button: true
gitea_require_signin: true gitea_require_signin: true
gitea_enable_captcha: true gitea_enable_captcha: true
gitea_only_allow_external_registration: false
gitea_force_private: false gitea_force_private: false

View file

@ -111,6 +111,7 @@ RECAPTCHA_SECRET =
RECAPTCHA_SITEKEY = RECAPTCHA_SITEKEY =
; Show Registration button ; Show Registration button
SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button }} SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button }}
ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ gitea_only_allow_external_registration }}
[mailer] [mailer]
ENABLED = {{ gitea_mailer_enabled }} ENABLED = {{ gitea_mailer_enabled }}