From: Dessalines Date: Sat, 13 Jun 2020 19:24:53 +0000 (-0400) Subject: Pictshare image redirect. X-Git-Url: http://these/git/%7B%60%24%7BghostArchiveUrl%7D/static/%7B%60%24%7BwebArchiveUrl%7D/save/%7B%60https:/%24%7Bsubmission.url%7D?a=commitdiff_plain;h=6dea945a3a55ca20a5ce43db2907fb0bf9363001;p=lemmy.git Pictshare image redirect. --- diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 6a5990a7..6a1c13c1 100644 --- a/ansible/templates/nginx.conf +++ b/ansible/templates/nginx.conf @@ -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;