Pictshare image redirect.

This commit is contained in:
Dessalines 2020-06-13 15:24:53 -04:00
parent 5594bed6a8
commit 6dea945a3a

View file

@ -70,6 +70,10 @@ server {
proxy_cache_min_uses 5;
}
# Redirect pictshare images to pictrs
rewrite ^(/pictshare/.*)$ /pictrs/image/$1;
# pict-rs images
location /pictrs/image/ {
proxy_pass http://0.0.0.0:8537/;
proxy_set_header X-Real-IP $remote_addr;