create the nginx cache

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-28 08:37:18 +01:00
parent b319071299
commit 34254d2dfb
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -52,6 +52,9 @@
proxy_cache_path /var/tmp/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";