bundles/gitea: disable registration by default

This commit is contained in:
Franzi 2022-07-12 20:28:59 +02:00
parent 696377cfbc
commit 2a938d19f1
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,7 @@ ENABLE_OPENID_SIGNUP = false
[service] [service]
REGISTER_EMAIL_CONFIRM = true REGISTER_EMAIL_CONFIRM = true
ENABLE_NOTIFY_MAIL = true ENABLE_NOTIFY_MAIL = true
DISABLE_REGISTRATION = false DISABLE_REGISTRATION = ${str(disable_registration).lower()}
ALLOW_ONLY_EXTERNAL_REGISTRATION = false ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false REQUIRE_SIGNIN_VIEW = false

View file

@ -12,6 +12,7 @@ defaults = {
'password': repo.vault.password_for('{} postgresql gitea'.format(node.name)), 'password': repo.vault.password_for('{} postgresql gitea'.format(node.name)),
'database': 'gitea', 'database': 'gitea',
}, },
'disable_registration': True,
'email_domain_blocklist': set(), 'email_domain_blocklist': set(),
'enable_git_hooks': False, 'enable_git_hooks': False,
'internal_token': repo.vault.password_for('{} gitea internal_token'.format(node.name)), 'internal_token': repo.vault.password_for('{} gitea internal_token'.format(node.name)),