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;