mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-26 12:51:30 +00:00
gitea: RequiresMountsFor and ConditionPathIsMountPoint @ /var/lib/gitea
This commit is contained in:
parent
a797b856fc
commit
7f6c48f978
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue