gitea: RequiresMountsFor and ConditionPathIsMountPoint @ /var/lib/gitea

This commit is contained in:
Alexander Tomokhov 2023-12-12 20:35:44 +04:00
parent a797b856fc
commit 7f6c48f978
2 changed files with 6 additions and 0 deletions

View file

@ -21,6 +21,10 @@ in
options = [ "bind" ]; options = [ "bind" ];
}; };
}; };
systemd.services.gitea.unitConfig = lib.mkIf sp.useBinds {
RequiresMountsFor = "/var/lib/gitea";
ConditionPathIsMountPoint = "/var/lib/gitea";
};
services = { services = {
gitea = { gitea = {
enable = true; enable = true;

View file

@ -16,6 +16,8 @@ in
map $scheme $hsts_header { map $scheme $hsts_header {
https "max-age=31536000; includeSubdomains; preload"; https "max-age=31536000; includeSubdomains; preload";
} }
proxy_headers_hash_bucket_size 128;
proxy_headers_hash_max_size 512;
''; '';
virtualHosts = { virtualHosts = {