mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +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;
|
proxy_cache_min_uses 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Redirect pictshare images to pictrs
|
||||||
|
rewrite ^(/pictshare/.*)$ /pictrs/image/$1;
|
||||||
|
|
||||||
|
# pict-rs images
|
||||||
location /pictrs/image/ {
|
location /pictrs/image/ {
|
||||||
proxy_pass http://0.0.0.0:8537/;
|
proxy_pass http://0.0.0.0:8537/;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
Loading…
Reference in a new issue