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

pull/55/head
Alexander 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" ];
};
};
systemd.services.gitea.unitConfig = lib.mkIf sp.useBinds {
RequiresMountsFor = "/var/lib/gitea";
ConditionPathIsMountPoint = "/var/lib/gitea";
};
services = {
gitea = {
enable = true;

View File

@ -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 = {