From 260e72931489aa0cb5fc4fd31db40d009d90ec5a Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:32:53 +0400 Subject: [PATCH] this should do it --- modules/server/fedi/akkoma.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/server/fedi/akkoma.nix b/modules/server/fedi/akkoma.nix index e41702ed..acb962f8 100644 --- a/modules/server/fedi/akkoma.nix +++ b/modules/server/fedi/akkoma.nix @@ -89,7 +89,13 @@ in { enableACME = true; locations = { "/media" = { proxyPass = "http://unix:/run/akkoma/socket"; }; - "/proxy" = { proxyPass = "http://unix:/run/akkoma/socket"; }; + "/proxy" = { + proxyPass = "http://unix:/run/akkoma/socket"; + extraConfig = '' + proxy_cache akkoma_media_cache; + proxy_cache_lock on; + ''; + }; }; }; };