fix: missing nginx proxy cache zone

This commit is contained in:
teutat3s 2023-10-28 21:12:33 +02:00
parent 1983edcc5b
commit 6f4741fae0
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 4 additions and 1 deletions

View file

@ -43,7 +43,7 @@ in
proxy_pass https://${objStorHost}/${objStorBucket}$request_uri?download;
proxy_intercept_errors off;
proxy_cache mastodon_files;
proxy_cache cache;
proxy_cache_valid 200 48h;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;

View file

@ -12,6 +12,9 @@ in {
enable = true;
group = webserverGroup;
enableReload = true;
proxyCachePath.cache = {
enable = true;
};
};
security.acme = {