mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 11:21:32 +00:00
Pictshare image redirect.
This commit is contained in:
parent
5594bed6a8
commit
6dea945a3a
1 changed files with 4 additions and 0 deletions
4
ansible/templates/nginx.conf
vendored
4
ansible/templates/nginx.conf
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue