From beb87f47a677fb60597b30ddcd568ad5aff7b58b Mon Sep 17 00:00:00 2001 From: notohh Date: Sat, 30 Dec 2023 20:46:58 -0500 Subject: [PATCH] forgejo: increase login ttl / disable signups --- hosts/sakura/services/forgejo.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/sakura/services/forgejo.nix b/hosts/sakura/services/forgejo.nix index a93a01e..cc09fc3 100644 --- a/hosts/sakura/services/forgejo.nix +++ b/hosts/sakura/services/forgejo.nix @@ -9,7 +9,7 @@ enable = true; stateDir = "/var/lib/forgejo"; settings = { - service.DISABLE_REGISTRATION = false; + service.DISABLE_REGISTRATION = true; DEFAULT.APP_NAME = "forgejo"; log.LEVEL = "Debug"; ui = { @@ -34,6 +34,9 @@ session = { COOKIE_SECURE = true; }; + security = { + LOGIN_REMEMBER_DAYS = 14; + }; database = { DB_TYPE = lib.mkForce "postgres"; HOST = "192.168.1.211:5432";