From cfc0afdec87e0f9ebc85a7a62fbacd7e85e69c05 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Tue, 19 Nov 2024 10:53:20 +0100 Subject: [PATCH] configure users registration --- forgejo.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/forgejo.nix b/forgejo.nix index 61ee918..b65c074 100644 --- a/forgejo.nix +++ b/forgejo.nix @@ -52,6 +52,16 @@ in }; service = { DISABLE_REGISTRATION = true; + ACTIVE_CODE_LIVE_MINUTES = 1440; + RESET_PASSWD_CODE_LIVE_MINUTES = 1440; + ENABLE_NOTIFY_MAIL = true; + DEFAULT_ALLOW_CREATE_ORGANIZATION = false; + DEFAULT_USER_IS_RESTRICTED = true; + DEFAULT_USER_VISIBILITY = "private"; + DEFAULT_ORG_VISIBILITY = "private"; + }; + "service.explore" = { + DISABLE_USERS_PAGE = true; }; # Add support for actions, based on act: https://github.com/nektos/act actions = {