add nginx rewrite rule for mediaproxy

This commit is contained in:
iodine 2019-01-26 01:13:29 -08:00 committed by lain
parent 4de7bea00e
commit 672899381c
1 changed files with 2 additions and 0 deletions

View File

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