From 8948db4dac44d8d957e7b2dc93227789933af53e Mon Sep 17 00:00:00 2001 From: chayleaf Date: Wed, 25 Oct 2023 03:41:53 +0700 Subject: [PATCH] server/gitea: enable federation, etc --- system/hosts/server/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/system/hosts/server/default.nix b/system/hosts/server/default.nix index 1d0ba4b..99b77c8 100644 --- a/system/hosts/server/default.nix +++ b/system/hosts/server/default.nix @@ -228,14 +228,22 @@ in { type = "postgres"; }; settings = { + federation.ENABLED = true; + git.timeout = { + DEFAULT = 6000; + MIGRATE = 6000; + MIRROR = 6000; + GC = 120; + }; mailer = { ENABLED = true; FROM = "Forgejo "; - MAILER_TYPE = "smtp"; - HOST = "mail.${cfg.domainName}:587"; + PROTOCOL = "smtp"; + SMTP_ADDR = "mail.${cfg.domainName}"; + SMTP_PORT = 587; USER = "noreply@${cfg.domainName}"; PASSWD = cfg.unhashedNoreplyPassword; - SKIP_VERIFY = true; + FORCE_TRUST_SERVER_CERT = true; }; session = { COOKIE_SECURE = true;