Skip to content

Commit

Permalink
docs: reference subdomain specs
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored Dec 11, 2023
1 parent 78a801c commit 64341e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ This input should be used sparingly and with caution, as it involves interacting

#### Subdomain Testing and `subdomain-url`

The `subdomain-url` parameter is utilized when testing subdomain support in your IPFS gateway. It can be set to any domain that your gateway safelisted for Subdomain feature.
During testing, the suite sends HTTP requests to the `gateway-url` while setting HTTP `Host` header to simulate Subdomain requests.
The `subdomain-url` parameter is utilized when testing subdomain support in your IPFS gateway. It can be set to any domain that your gateway dedicated and safelisted for [Subdomain gateway](https://specs.ipfs.tech/http-gateways/subdomain-gateway/) feature.
During testing, the suite sends HTTP requests to the `gateway-url` while setting HTTP `Host` header value to be based on the parent domain name from `subdomain-url` to simulate Subdomain requests.
This approach enables testing of local gateways during development or continuous integration (CI) scenarios.

A few examples:
Expand Down

0 comments on commit 64341e3

Please sign in to comment.