Skip to content

Support DNSLink Gateway Mode #715

@lidel

Description

@lidel

Right now, SW gateway inspects window.location.hostname and if domain matches subdomain gateway convention (https://specs.ipfs.tech/http-gateways/subdomain-gateway/) then runs in subdomain mode, using the CID from {cid}.ipfs.inbrowser.link as the content root.

One can imagine we could also check if the hostname has a valid DNSLink, and if present, use that as the content root.

This would effectively implement https://specs.ipfs.tech/http-gateways/dnslink-gateway/ allowing people to host static HTML + JS on their own domain, and control updates of the loaded website / web app via DNSLink TXT record (which itself could also point at IPNS name).

Ref. original PoC by @jimpick at https://bsky.app/profile/jimpick.com/post/3loueifgzlk2f

cc @2color @SgtPooki

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upeffort/daysEstimated to take multiple days, but less than a weekenhancementNew feature or requestexp/intermediatePrior experience is likely helpfulkind/enhancementA net-new feature or improvement to an existing featurestatus/readyReady to be worked

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions