From 26b050c9fc1e40e09a626aef53e8a8882afd5ff6 Mon Sep 17 00:00:00 2001 From: Nico Date: Mon, 12 May 2025 19:23:48 +1000 Subject: [PATCH] forgejo: only allow registration through oidc providers --- modules/services/forgejo.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/services/forgejo.nix b/modules/services/forgejo.nix index a747a70..351212b 100644 --- a/modules/services/forgejo.nix +++ b/modules/services/forgejo.nix @@ -17,7 +17,12 @@ HTTP_PORT = 3000; }; - service.DISABLE_REGISTRATION = true; + service = { + DISABLE_REGISTRATION = true; + ALLOW_ONLY_EXTERNAL_REGISTRATION = true; + SHOW_REGISTRATION_BUTTON = false; + ENABLE_PASSWORD_SIGNIN_FORM = false; + }; }; };