Skip to content

Commit

Permalink
Update using-custom-domains.mdx (#3934)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessiemongeon1 authored Jan 9, 2025
1 parent 763930b commit a50966f
Showing 1 changed file with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";

<MarkdownChipRow labels={["Intermediate", "Tutorial"]} />



By default, all canisters on the Internet Computer are accessible through the
domain `icp0.io` and their canister ID. In addition to that default domain, one
can also make a canister accessible under a custom domain using one of the
Expand Down Expand Up @@ -119,7 +117,7 @@ by some instructions on [troubleshooting](#troubleshooting).
Configure the `.well-known` directory to be included by writing the following
configuration into the `.ic-assets.json`-file:

```
```json
[
{
"match": ".well-known",
Expand All @@ -134,11 +132,11 @@ by some instructions on [troubleshooting](#troubleshooting).

```sh
curl -sL -X POST \
    -H 'Content-Type: application/json' \
    https://icp0.io/registrations \
    --data @- <<EOF
-H 'Content-Type: application/json' \
https://icp0.io/registrations \
--data @- <<EOF
{
    "name": "CUSTOM_DOMAIN"
"name": "CUSTOM_DOMAIN"
}
EOF
```
Expand Down Expand Up @@ -180,7 +178,7 @@ by some instructions on [troubleshooting](#troubleshooting).
```sh
curl -sL -X GET \
    https://icp0.io/registrations/REQUEST_ID
https://icp0.io/registrations/REQUEST_ID
```
The status will be one of the following:
Expand Down Expand Up @@ -246,11 +244,11 @@ For example:
```sh
curl -sL -X POST \
    -H 'Content-Type: application/json' \
    https://icp0.io/registrations \
    --data @- <<EOF
-H 'Content-Type: application/json' \
https://icp0.io/registrations \
--data @- <<EOF
{
    "name": "foo.bar.com"
"name": "foo.bar.com"
}
EOF
```
Expand Down Expand Up @@ -303,7 +301,7 @@ first need to update the DNS record of your domain, then notify a boundary node:
```sh
curl -sL -X PUT \
    https://icp0.io/registrations/REQUEST_ID
https://icp0.io/registrations/REQUEST_ID
```
:::info
Expand All @@ -324,7 +322,7 @@ and notify a boundary node:
```sh
curl -sL -X DELETE \
    https://icp0.io/registrations/REQUEST_ID
https://icp0.io/registrations/REQUEST_ID
```
:::info
Expand Down

0 comments on commit a50966f

Please sign in to comment.