From 7f6c48f97823c27d468726d343b08cf6738bcd0f Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Tue, 12 Dec 2023 20:35:44 +0400 Subject: [PATCH] gitea: RequiresMountsFor and ConditionPathIsMountPoint @ /var/lib/gitea --- sp-modules/gitea/module.nix | 4 ++++ webserver/nginx.nix | 2 ++ 2 files changed, 6 insertions(+) diff --git a/sp-modules/gitea/module.nix b/sp-modules/gitea/module.nix index f5e24f5..eef50b6 100644 --- a/sp-modules/gitea/module.nix +++ b/sp-modules/gitea/module.nix @@ -21,6 +21,10 @@ in options = [ "bind" ]; }; }; + systemd.services.gitea.unitConfig = lib.mkIf sp.useBinds { + RequiresMountsFor = "/var/lib/gitea"; + ConditionPathIsMountPoint = "/var/lib/gitea"; + }; services = { gitea = { enable = true; diff --git a/webserver/nginx.nix b/webserver/nginx.nix index 5284a43..774d499 100644 --- a/webserver/nginx.nix +++ b/webserver/nginx.nix @@ -16,6 +16,8 @@ in map $scheme $hsts_header { https "max-age=31536000; includeSubdomains; preload"; } + proxy_headers_hash_bucket_size 128; + proxy_headers_hash_max_size 512; ''; virtualHosts = {