From 9adfb820530b0f36562ff0ca914affd2c0d5dd30 Mon Sep 17 00:00:00 2001 From: Lgmrszd Date: Sun, 12 May 2024 21:16:21 +0300 Subject: [PATCH] vps1: git: session settings --- hosts/vps1/services/git.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/vps1/services/git.nix b/hosts/vps1/services/git.nix index 21537c1..74edd68 100644 --- a/hosts/vps1/services/git.nix +++ b/hosts/vps1/services/git.nix @@ -45,6 +45,14 @@ in DEFAULT = { APP_NAME = "Lgmrszd's git"; }; + session = { + PROVIDER = "db"; + COOKIE_SECURE = true; + COOKIE_NAME = "lgmgit-session"; + DOMAIN = domain; + GC_INTERVAL_TIME = 86400 * 7; + SESSION_LIFE_TIME = 86400 * 7; + }; service = { DISABLE_REGISTRATION = false; ALLOW_ONLY_INTERNAL_REGISTRATION = false;