@cryptotaxi247 / kubo / commits / 580d68685

docs: document X-Forwarded-Host

Marcin Rataj committed Jul 10, 2020 at 19:40 UTC 580d68685c705293da2d162b466e6b3d94bfb8ba
1 file changed +5 -2
docs/config.md
+5 -2
@@ -698,8 +698,11 @@ Below is a list of the most common public gateway setups.
698 ```
699 **Note I:** this enables automatic redirects from content paths to subdomains:
700 `http://dweb.link/ipfs/{cid}` → `http://{cid}.ipfs.dweb.link`
701 - **Note II:** if you run go-ipfs behind a reverse proxy that provides TLS, make it adds a `X-Forwarded-Proto: https` HTTP header to ensure users are redirected to `https://`, not `http://`. The NGINX directive is `proxy_set_header X-Forwarded-Proto "https";`.:
702 - `https://dweb.link/ipfs/{cid}` → `https://{cid}.ipfs.dweb.link`
701 + **Note II:** if you run go-ipfs behind a reverse proxy that provides TLS, make it add a `X-Forwarded-Proto: https` HTTP header to ensure users are redirected to `https://`, not `http://`. The NGINX directive is `proxy_set_header X-Forwarded-Proto "https";`.:
702 + `http://dweb.link/ipfs/{cid}` → `https://{cid}.ipfs.dweb.link`
703 + **Note III:** we also support `X-Forwarded-Proto: example.com` if you want to override subdomain gateway host from the original request:
704 + `http://dweb.link/ipfs/{cid}` → `http://{cid}.ipfs.example`
705 +
706
707 * Public [path gateway](https://docs.ipfs.io/how-to/address-ipfs-on-web/#path-gateway) at `http://ipfs.io/ipfs/{cid}` (no Origin separation)
708 ```console