From 03150667b6fb16180d330524a17b37b8b06902c3 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sun, 4 Feb 2024 13:59:39 -0700 Subject: [PATCH] Enable gitea index and lfs. Fix warning. --- common/server/gitea.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/server/gitea.nix b/common/server/gitea.nix index 6188d90..b5ab844 100644 --- a/common/server/gitea.nix +++ b/common/server/gitea.nix @@ -13,7 +13,7 @@ in config = lib.mkIf cfg.enable { services.gitea = { appName = cfg.hostname; - # lfs.enable = true; + lfs.enable = true; # dump.enable = true; settings = { server = { @@ -44,6 +44,9 @@ in actions = { ENABLED = true; }; + indexer = { + REPO_INDEXER_ENABLED = true; + }; }; mailerPasswordFile = "/run/agenix/robots-email-pw"; }; @@ -62,7 +65,7 @@ in enableACME = true; forceSSL = true; locations."/" = { - proxyPass = "http://localhost:${toString cfg.httpPort}"; + proxyPass = "http://localhost:${toString cfg.settings.server.HTTP_PORT}"; }; }; };