From ff2cfb1edcb9b90200c6b027f85229402a06c255 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 22 Mar 2021 02:16:11 +0100 Subject: [PATCH] improve default privacy rules --- README.md | 1 + defaults/main.yml | 1 + templates/gitea.ini.j2 | 1 + 3 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 881da62..4c5f9cb 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,7 @@ Here is a deeper insight into the variables of this gitea role. For the exact fu | `gitea_disable_registration` | `false` | Do you want to disable user registration? (true/false) | | `gitea_register_email_confirm` | `false` | Enable this to ask for mail confirmation of registration. Requires `gitea_mailer_enabled` to be enabled. | | `gitea_require_signin` | `true` | Do you require a signin to see repo's (even public ones)? (true/false)| +| `gitea_default_keep_mail_private` | `true` | By default set users to keep their email address privat | | `gitea_enable_captcha` | `true` | Do you want to enable captcha's ? (true/false)| | `gitea_show_registration_button` | `true` | Here you can hide the registration button. This will not disable registration! (true/false)| | `gitea_only_allow_external_registration` | `false` | Set to true to force registration only using third-party services (true/false) | diff --git a/defaults/main.yml b/defaults/main.yml index 92c7822..b24c0d9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -88,6 +88,7 @@ gitea_security_extra_config: '' gitea_disable_registration: false gitea_register_email_confirm: false gitea_require_signin: true +gitea_default_keep_mail_private: true gitea_enable_captcha: true gitea_show_registration_button: true gitea_only_allow_external_registration: false diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index 824a53b..a9fc128 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -99,6 +99,7 @@ PASSWORD_CHECK_PWN = {{ gitea_password_check_pwn | ternary('true', 'false') }} DISABLE_REGISTRATION = {{ gitea_disable_registration | ternary('true', 'false') }} REGISTER_EMAIL_CONFIRM = {{ gitea_register_email_confirm | ternary('true', 'false') }} REQUIRE_SIGNIN_VIEW = {{ gitea_require_signin | ternary('true', 'false') }} +DEFAULT_KEEP_EMAIL_PRIVATE = {{ gitea_default_keep_mail_private | ternary('true', 'false') }} ENABLE_CAPTCHA = {{ gitea_enable_captcha | ternary('true', 'false') }} SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button | ternary('true', 'false') }} ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ gitea_only_allow_external_registration | ternary('true', 'false') }}