gitea: disable non oauth signing/registration

This commit is contained in:
John
2026-10-04 19:14:54 +02:00
committed by John Zimmermann
parent 141f5af4fc
commit 4e32bed8a6
+6
View File
@@ -17,11 +17,15 @@ HOST = /tmp/
NAME = gitea NAME = gitea
USER = _gitea USER = _gitea
PASSWD = PASSWD =
[admin]
EXTERNAL_USER_DISABLE_FEATURES = manage_mfa
[security] [security]
INSTALL_LOCK = true INSTALL_LOCK = true
SECRET_KEY = {{ gitea_secret_key }} SECRET_KEY = {{ gitea_secret_key }}
INTERNAL_TOKEN = {{ gitea_internal_token }} INTERNAL_TOKEN = {{ gitea_internal_token }}
[camo] [camo]
[oauth2_client]
ENABLE_AUTO_REGISTRATION = true
[oauth2] [oauth2]
ENABLED = true ENABLED = true
JWT_SECRET = {{ gitea_jwt_secret }} JWT_SECRET = {{ gitea_jwt_secret }}
@@ -49,6 +53,8 @@ REPLY_TO_ADDRESS = git+%{token}@cosmosim.dev
COOKIE_SECURE = true COOKIE_SECURE = true
[git] [git]
[service] [service]
ENABLE_PASSWORD_SIGNIN_FORM = false
ENABLE_PASSKEY_AUTHENTICATION = false
REGISTER_EMAIL_CONFIRM = true REGISTER_EMAIL_CONFIRM = true
ENABLE_NOTIFY_MAIL = true ENABLE_NOTIFY_MAIL = true
DISABLE_REGISTRATION = true DISABLE_REGISTRATION = true