Skip to content
This repository was archived by the owner on Jun 2, 2020. It is now read-only.

Commit 53daa7e

Browse files
Merge pull request #421 from ipfs/feat/nginx-subdomain-config
docs: nginx config for subdomain gateway
2 parents 6f68c60 + ad9940c commit 53daa7e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

content/guides/guides/addressing.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,15 @@ Example:
6666

6767

6868
<aside class="alert alert-info">
69-
Right now, this type of gateway requires additional configuration (<a href="https://github.com/ipfs/infra/issues/81#issuecomment-461045160" target="_blank">example for Nginx&nbsp;<i class="fas fa-external-link-square-alt fa-sm"></i></a>); however, there is ongoing work to <a href="https://github.com/ipfs/go-ipfs/issues/5982" target="_blank">add native support in the IPFS daemon&nbsp;<i class="fas fa-external-link-square-alt fa-sm"></i></a>.
69+
<p>There is ongoing work to <a href="https://github.com/ipfs/go-ipfs/issues/6498" target="_blank">add native subdomain support to the IPFS daemon&nbsp;<i class="fas fa-external-link-square-alt fa-sm"></i></a>.</p>
70+
71+
<p>For now, this type of gateway requires additional reverse proxy configuration.<br/>
72+
As a reference, Nginx config for subdomain gateway at <code>dweb.link</code> is:
73+
<code><pre>if ($http_host ~ ^(.+)\.(ipfs|ipns)\.dweb\.link$) {
74+
set $ipfspath /$2/$1;
75+
rewrite "^(.*)$" $ipfspath$1 last;
76+
}</pre></code>
77+
</p>
7078
</aside>
7179

7280
#### DNSLink Gateway

0 commit comments

Comments
 (0)