From 6dea945a3a55ca20a5ce43db2907fb0bf9363001 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 13 Jun 2020 15:24:53 -0400 Subject: [PATCH] Pictshare image redirect. --- ansible/templates/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 6a5990a70..6a1c13c18 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;