1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-11-15 21:46:23 +01:00

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

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;