From c05fafefe890e4a5d19ca5aa5709de99a2d1fea2 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 31 Aug 2022 17:19:58 +0200 Subject: [PATCH] modules: services: gitea: migrate to 'settings' --- modules/services/gitea/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix index 39332c5..9c443f0 100644 --- a/modules/services/gitea/default.nix +++ b/modules/services/gitea/default.nix @@ -64,10 +64,6 @@ in lfs.enable = true; useWizard = false; - disableRegistration = true; - - # only send cookies via HTTPS - cookieSecure = true; database = { type = "postgres"; # Automatic setup @@ -90,6 +86,15 @@ in MAILER_TYPE = cfg.mail.type; IS_TLS_ENABLED = cfg.mail.tls; }; + + service = { + DISABLE_REGISTRATION = true; + }; + + session = { + # only send cookies via HTTPS + COOKIE_SECURE = true; + }; }; };