diff --git a/machines/core-services-01/gitea.nix b/machines/core-services-01/gitea.nix index 71b46a2..9835ac1 100644 --- a/machines/core-services-01/gitea.nix +++ b/machines/core-services-01/gitea.nix @@ -13,7 +13,20 @@ in httpAddress = "127.0.0.1"; httpPort = port; database.type = "postgres"; - disableRegistration = true; + disableRegistration = false; + settings = { + openid = { + ENABLE_OPENID_SIGNUP = true; + }; + oauth2_account = { + ENABLE_AUTO_REGISTRATION = true; + USERNAME = "email"; + }; + service = { + EMAIL_DOMAIN_WHITELIST = "ens.fr"; + ALLOW_ONLY_EXTERNAL_REGISTRATION = true; + }; + }; }; services.nginx = {