Unverified Commit c5b30545 authored by Marcin Rataj's avatar Marcin Rataj Committed by GitHub

docs: X-Forwarded-Proto: https

Additional documentation for running subdomain gateway behind reverse proxy with TLS.
parent fa8c88b1
......@@ -614,8 +614,10 @@ Below is a list of the most common public gateway setups.
}
}'
```
**Note:** this enables automatic redirects from content paths to subdomains
`http://dweb.link/ipfs/{cid}``http://{cid}.ipfs.dweb.link`
**Note I:** this enables automatic redirects from content paths to subdomains:
`http://dweb.link/ipfs/{cid}``http://{cid}.ipfs.dweb.link`
**Note II:** if you run go-ipfs behind reverse proxy that provides TLS make it add `X-Forwarded-Proto: https` HTTP header to ensure users are redirected to `https://` URLs (Nginx directive: `proxy_set_header X-Forwarded-Proto "https";`):
`https://dweb.link/ipfs/{cid}``https://{cid}.ipfs.dweb.link`
* Public [path gateway](https://docs-beta.ipfs.io/how-to/address-ipfs-on-web/#path-gateway) at `http://ipfs.io/ipfs/{cid}` (no Origin separation)
```console
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment