From 1975d83017a7afb5fa2d9e14e5d3d31a0f6575ca Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 25 Dec 2025 02:09:05 +0100 Subject: [PATCH] feat(self_host/git): disabling the creation of account - Now only use the sso for account creation --- services/self_host/git.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/services/self_host/git.nix b/services/self_host/git.nix index 445dd22..191d46d 100644 --- a/services/self_host/git.nix +++ b/services/self_host/git.nix @@ -18,10 +18,6 @@ in SSH_PORT = 42131; HTTP_ADDR = "127.0.0.1"; HTTP_PORT = 3042; - DISABLE_REGISTRATION = true; - ALLOW_ONLY_EXTERNAL_REGISTRATION = true; - SHOW_REGISTRATION_BUTTON = false; - DISABLE_REGULAR_LOGIN = true; }; oauth2 = { @@ -39,6 +35,12 @@ in UPDATE_AVATAR = true; }; + service = { + DISABLE_REGISTRATION = true; + ALLOW_ONLY_EXTERNAL_REGISTRATION = true; + SHOW_REGISTRATION_BUTTON = false; + DISABLE_PASSWORD_SIGNIN_FORM = true; + }; security = { LOGIN_REMEMBER_DAYS = 14; };