gitea: RequiresMountsFor and ConditionPathIsMountPoint @ /var/lib/gitea
This commit is contained in:
@@ -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;
|
||||
|
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user