correct the nginx cache path

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-30 13:26:28 +01:00
parent 541cb39c5f
commit 3d641d454b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -55,12 +55,9 @@
};
};
services.nginx.appendHttpConfig = ''
proxy_cache_path /var/tmp/nginx levels=1:2 keys_zone=CACHE:10m max_size=10g
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m max_size=10g
inactive=60m use_temp_path=off;
'';
systemd.tmpfiles.rules = [
"d /var/tmp/nginx 0700 nginx acme - -"
];
services.nginx.virtualHosts."chir.rs" = {
sslCertificate = "/var/lib/acme/chir.rs/cert.pem";
sslCertificateKey = "/var/lib/acme/chir.rs/key.pem";