diff --git a/docs/config.md b/docs/config.md index 8663d276f..7aa218874 100644 --- a/docs/config.md +++ b/docs/config.md @@ -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