]> Untitled Git - lemmy.git/commitdiff
Pictshare image redirect.
authorDessalines <tyhou13@gmx.com>
Sat, 13 Jun 2020 19:24:53 +0000 (15:24 -0400)
committerDessalines <tyhou13@gmx.com>
Sat, 13 Jun 2020 19:24:53 +0000 (15:24 -0400)
ansible/templates/nginx.conf

index 6a5990a70fcf63fb960c2ba8dd60af51358225bc..6a1c13c18e4a6db1eafa228f0f18cab75736fb9a 100644 (file)
@@ -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;