From eebe524271ccacb22e36db37db1f536f5cb5d728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 19 Nov 2022 20:37:00 +0100 Subject: [PATCH] configure the cache --- config/services/akkoma/mediaproxy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/services/akkoma/mediaproxy.nix b/config/services/akkoma/mediaproxy.nix index 8bf2f814..b8e6fb17 100644 --- a/config/services/akkoma/mediaproxy.nix +++ b/config/services/akkoma/mediaproxy.nix @@ -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"; -- 2.47.0