nginx proxy doesn't seem to cache correctly
Hi,
i recently configured the mediaproxy and the nginx cache. Pleroma mediaproxy seems to work fine cause all images are no served throuh pl.n0id.space/proxy
But i have a problem with the nginx cache.. i set my configs according to https://git.pleroma.social/pleroma/pleroma/blob/develop/installation/pleroma.nginx
outside server block:
proxy_cache_path /tmp/pleroma-media levels=1:2 keys_zone=pleroma_media_cache:10m max_size=3g inactive=720m use_temp_path=off;
inside:
## Media Proxy
location ~ ^/(media|proxy) {
proxy_cache pleroma_media_cache;
slice 1m;
proxy_cache_key $host$uri$is_args$args$slice_range;
proxy_set_header Range $slice_range;
proxy_http_version 1.1;
proxy_cache_valid 200 206 301 304 1h;
proxy_cache_lock on;
proxy_ignore_client_abort on;
proxy_buffering on;
chunked_transfer_encoding on;
proxy_ignore_headers Cache-Control;
proxy_hide_header Cache-Control;
proxy_pass http://localhost:4000;
}
But the directory /tmp/pleroma-media
stays empty.. there are also no erros logged to nginx.error
I also checked the permission for the nginx user on the cachedir. I can create files with the nginx user in /tmp/pleroma-media
Currently i run develop with commit d1e89106
Sadly i'm not an nginx guru, so am i missing something or is this a bug?