3 Pleroma does not store remote/federated media by default. The best way to achieve this is to change Nginx to keep its reverse proxy cache
4 forever and to activate the `MediaProxyWarmingPolicy` MRF policy in Pleroma which will automatically fetch all media through the proxy
5 as soon as the post is received by your instance.
9 We should be using `proxy_store` here I think???
12 location ~ ^/(media|proxy) {
13 proxy_cache pleroma_media_cache;
15 proxy_cache_key $host$uri$is_args$args$slice_range;
16 proxy_set_header Range $slice_range;
17 proxy_http_version 1.1;
18 proxy_cache_valid 200 206 301 304 1h;
20 proxy_ignore_client_abort on;
22 chunked_transfer_encoding on;
23 proxy_ignore_headers Cache-Control;
24 proxy_hide_header Cache-Control;
25 proxy_pass http://127.0.0.1:4000;
31 Add to your `prod.secret.exs`:
34 config :pleroma, :instance,
35 rewrite_policy: [Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy]