configure the cache

This commit is contained in:
Charlotte 🦝 Delenk 2022-11-19 20:37:00 +01:00
parent e4d1fcec19
commit eebe524271
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -1,7 +1,7 @@
{
services.nginx = {
enable = true;
commonHttpConfig = "proxy_cache_path /var/cache/mediacache levels=1:2 keys_zone=akkoma_media_cache:10m inactive=1y use_temp_path=off;";
commonHttpConfig = "proxy_cache_path /var/cache/mediacache levels=2:2:2 keys_zone=akkoma_media_cache:25m inactive=1y use_temp_path=off min_free=10G;";
virtualHosts."mail.chir.rs".listen = [
{
addr = "127.0.0.1";