mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Pictshare image redirect.
This commit is contained in:
parent
5594bed6a8
commit
6dea945a3a
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 New Issue
Block a user