diff options
author | Dessalines <tyhou13@gmx.com> | 2020-06-13 15:24:53 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-06-13 15:24:53 -0400 |
commit | 6dea945a3a55ca20a5ce43db2907fb0bf9363001 (patch) | |
tree | fc88c8ec3738098d355151253f2aa513ac8722bd /ansible | |
parent | 5594bed6a8832b3fcba48966752cf0d5859cf1d4 (diff) |
Pictshare image redirect.
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/templates/nginx.conf | 4 |
1 files changed, 4 insertions, 0 deletions
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; |