From 6c4517a8d5630cea732fdd8db9537cd3337439e3 Mon Sep 17 00:00:00 2001 From: Stephen Sugden Date: Wed, 27 Jan 2016 16:45:58 +0100 Subject: [PATCH] Proxy redirects from IPFS gateway This fixes an issue where relative URLs inside an index.html are resolved incorrectly on gateway.ipfs.io --- solarnet/roles/ipfs_gateway/templates/nginx_ipfs_gateway.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/solarnet/roles/ipfs_gateway/templates/nginx_ipfs_gateway.conf.j2 b/solarnet/roles/ipfs_gateway/templates/nginx_ipfs_gateway.conf.j2 index 83becce..1dfb5a3 100644 --- a/solarnet/roles/ipfs_gateway/templates/nginx_ipfs_gateway.conf.j2 +++ b/solarnet/roles/ipfs_gateway/templates/nginx_ipfs_gateway.conf.j2 @@ -96,6 +96,7 @@ server { proxy_set_header Host ""; proxy_set_header X-Ipfs-Gateway-Prefix ""; proxy_pass http://gateway; + proxy_redirect default; proxy_read_timeout 1800s; }