Commit 67289938 authored by iodone's avatar iodone Committed by lain

add nginx rewrite rule for mediaproxy

parent 4de7bea0
Pipeline #7892 passed with stages
in 3 minutes and 28 seconds
......@@ -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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment