From 76892f5c2f1acbf8af560e6b8e8aef47eb2770fb Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Fri, 4 Sep 2020 18:51:55 +0200 Subject: [PATCH] docs(config): X-Forwarded-Host This fixes a bug and documents X-Forwarded-Host License: MIT Signed-off-by: Marcin Rataj --- docs/config.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/config.md b/docs/config.md index 274280b0404..6119098f8d7 100644 --- a/docs/config.md +++ b/docs/config.md @@ -702,11 +702,11 @@ Below is a list of the most common public gateway setups. } }' ``` - **Note I:** this enables automatic redirects from content paths to subdomains: + **Backward-compatible:** this feature 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 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";`.: + **X-Forwarded-Proto:** 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";`.: `http://dweb.link/ipfs/{cid}` → `https://{cid}.ipfs.dweb.link` - **Note III:** we also support `X-Forwarded-Proto: example.com` if you want to override subdomain gateway host from the original request: + **X-Forwarded-Host:** we also support `X-Forwarded-Host: example.com` if you want to override subdomain gateway host from the original request: `http://dweb.link/ipfs/{cid}` → `http://{cid}.ipfs.example.com`