Skip to content

Commit

Permalink
gateway: editorial fixes
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Loeppky <[email protected]>
  • Loading branch information
lidel and BigLep authored Jun 23, 2022
1 parent 2c731d3 commit 6787fd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions http-gateways/SUBDOMAIN_GATEWAY.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ namespace, and finally the domain name used by the gateway.

Converting `Host` into a content path depends on the nature of requested resource:

- For content at `/ipfs/{cid}`
- For content at `/ipfs/{cid}`:
- `Host: {cid-mbase32}.ipfs.example.net`
- Example: `Host: bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi.ipfs.dweb.link`
- For content at `/ipns/{libp2p-key}`
- For content at `/ipns/{libp2p-key}`:
- `Host: {libp2p-key-mbase36}.ipns.example.net`
- Example: `Host: k2k4r8jl0yz8qjgqbmc2cdu5hkqek5rj6flgnlkyywynci20j0iuyfuj.ipns.dweb.link`
- Note: Base36 must be used to ensure CIDv1 with ED25519 fits in a single DNS label (63 characters).
- For content at `/ipns/{dnslink-name}`
- For content at `/ipns/{dnslink-name}`:
- `Host: {inlined-dnslink-name}.ipns.example.net`
- DNSLink names include `.` which means they MUST be inlined into a single DNS label to provide unique origin and work with wildcard TLS certificates.
- DNSLink label encoding:
Expand Down
2 changes: 1 addition & 1 deletion http-gateways/TRUSTLESS_GATEWAY.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Gateway is free to return HTTP 400 Bad Request when running in strict trustless
mode and `Accept` header is missing

Below response types MUST to be supported:
- [application/vnd.ipld.raw](https://www.iana.org/assignments/media-types/application/vnd.ipld.raw) – requests a singe, verifiable raw block to be returned
- [application/vnd.ipld.raw](https://www.iana.org/assignments/media-types/application/vnd.ipld.raw) – requests a single, verifiable raw block to be returned
- [application/vnd.ipld.car](https://www.iana.org/assignments/media-types/application/vnd.ipld.car) – disables IPLD/IPFS deserialization, requests a verifiable CAR stream to be returned

# Response
Expand Down

0 comments on commit 6787fd8

Please sign in to comment.