From 2a938d19f1f0b22029a6fbacef8a3a49002cb56e Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 12 Jul 2022 20:28:59 +0200 Subject: [PATCH] bundles/gitea: disable registration by default --- bundles/gitea/files/app.ini | 2 +- bundles/gitea/metadata.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/gitea/files/app.ini b/bundles/gitea/files/app.ini index 36d0f46..a904681 100644 --- a/bundles/gitea/files/app.ini +++ b/bundles/gitea/files/app.ini @@ -55,7 +55,7 @@ ENABLE_OPENID_SIGNUP = false [service] REGISTER_EMAIL_CONFIRM = true ENABLE_NOTIFY_MAIL = true -DISABLE_REGISTRATION = false +DISABLE_REGISTRATION = ${str(disable_registration).lower()} ALLOW_ONLY_EXTERNAL_REGISTRATION = false ENABLE_CAPTCHA = false REQUIRE_SIGNIN_VIEW = false diff --git a/bundles/gitea/metadata.py b/bundles/gitea/metadata.py index 06556a9..6cd653d 100644 --- a/bundles/gitea/metadata.py +++ b/bundles/gitea/metadata.py @@ -12,6 +12,7 @@ defaults = { 'password': repo.vault.password_for('{} postgresql gitea'.format(node.name)), 'database': 'gitea', }, + 'disable_registration': True, 'email_domain_blocklist': set(), 'enable_git_hooks': False, 'internal_token': repo.vault.password_for('{} gitea internal_token'.format(node.name)),