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

docs: nginx config for subdomain gateway #421

Merged
merged 1 commit into from
Jan 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion content/guides/guides/addressing.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ Example:


<aside class="alert alert-info">
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>.
<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>

<p>For now, this type of gateway requires additional reverse proxy configuration.<br/>
As a reference, Nginx config for subdomain gateway at <code>dweb.link</code> is:
<code><pre>if ($http_host ~ ^(.+)\.(ipfs|ipns)\.dweb\.link$) {
set $ipfspath /$2/$1;
rewrite "^(.*)$" $ipfspath$1 last;
}</pre></code>
</p>
</aside>

#### DNSLink Gateway
Expand Down