From 672899381c8cacb6e7c6cbf08b5567dab2003a4d Mon Sep 17 00:00:00 2001 From: iodine Date: Sat, 26 Jan 2019 01:13:29 -0800 Subject: [PATCH] add nginx rewrite rule for mediaproxy --- installation/pleroma.nginx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 8800912f7..58aa0dd0c 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -70,6 +70,8 @@ server { client_max_body_size 16m; } + rewrite ^/proxy/(.*)/(.*)/.* /proxy/$1/$2 last; + location ~ ^/(media|proxy) { proxy_cache pleroma_media_cache; proxy_cache_key $host$uri$is_args$args;