this should do it

This commit is contained in:
Sakooooo 2025-01-02 16:32:53 +04:00
parent 8e9ef37e93
commit 260e729314
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -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;
'';
};
};
};
};