Setup NIP5 verification using Github Pages
"NIP5: Mapping Nostr keys to DNS-based internet identifiers"
-
Buy a domain 😅 如 【 nostrurl.com 】Setup Domain DNS records to point to GitHub Pages:
| Type | Host | Answer | TTL | Priority | |------|----------------|-----------------|-----|----------| @| A | nostrurl.com | 185.199.108.153 | 300 | | *| A | nostrurl.com | 185.199.109.153 | 300 | | www| A | nostrurl.com | 185.199.109.153 | 300 | |
-
Create a new github repo
github.com/new
-
Create a new file
[YOUR-REPO]/.well-known/nostr.json
如:nostr.json -
Edit
nostr.json
to reflect desired Nickname and YOUR pub key (hex format) this content:{ "names": { "cndx": "d34110060782337c8864ff76321a821f2dbbcfb0bb33864b1cc48712abd84a80" } }
-
Create a new file in the root folder
[YOUR-REPO]/_config.yml
and add this lineinclude: [".well-known"]
-
Navigate to github.com/[USER]/[YOUR-REPO]/settings/pages
-
Under "Build and deployment" select "Deploy from branch" then below select branch "Main /(root)"
-
Under "Custom domain" type your naked
nostrurl.com
(github might complain, ignore) -
Below it, check Enforce HTTPS. Sometimes this may take a few minutes to be available.
-
Then head over
iris.to/profile/edit
orastral.ninja/settings
(or other) edit the NIP-05 Indentifier field to reflect "cndx@nostrurl.com" and press Save -
You are all set now, enjoy the vanity address.