diff options
author | Dessalines <tyhou13@gmx.com> | 2020-06-23 21:11:38 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-06-23 21:11:38 -0400 |
commit | dc94e58cbf7e7de10d97331a3056380a3416e0b0 (patch) | |
tree | 85ed25783b0470ead3012a9718aea50b39c940dd /docker/federation/nginx.conf | |
parent | fd6a040568239d2e6949394fdc0ce0f7ac70275c (diff) | |
parent | 790b944031f9433be765936763d848ffa6e1b496 (diff) |
Merge branch 'master' into federation_merge_from_master_2
Diffstat (limited to 'docker/federation/nginx.conf')
-rw-r--r-- | docker/federation/nginx.conf | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/docker/federation/nginx.conf b/docker/federation/nginx.conf index a73b0954..25160eb6 100644 --- a/docker/federation/nginx.conf +++ b/docker/federation/nginx.conf @@ -23,11 +23,16 @@ http { proxy_set_header Connection "upgrade"; } - location /pictshare/ { - proxy_pass http://pictshare_alpha:80/; + # pict-rs images + location /pictrs { + location /pictrs/image { + proxy_pass http://pictrs_alpha:8080/image; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + # Block the import + return 403; } location /iframely/ { @@ -58,11 +63,16 @@ http { proxy_set_header Connection "upgrade"; } - location /pictshare/ { - proxy_pass http://pictshare_beta:80/; + # pict-rs images + location /pictrs { + location /pictrs/image { + proxy_pass http://pictrs_beta:8080/image; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + # Block the import + return 403; } location /iframely/ { @@ -93,11 +103,16 @@ http { proxy_set_header Connection "upgrade"; } - location /pictshare/ { - proxy_pass http://pictshare_gamma:80/; + # pict-rs images + location /pictrs { + location /pictrs/image { + proxy_pass http://pictrs_gamma:8080/image; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + # Block the import + return 403; } location /iframely/ { |