<-- Back 8nostr.com Home

Setup NIP5 verification using Github Pages

"NIP5: Mapping Nostr keys to DNS-based internet identifiers"

  1. 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 |          |
    
  2. Create a new github repo github.com/new

  3. Create a new file [YOUR-REPO]/.well-known/nostr.json 如:nostr.json

  4. Edit nostr.json to reflect desired Nickname and YOUR pub key (hex format) this content:

    {
      "names": {
        "cndx": "d34110060782337c8864ff76321a821f2dbbcfb0bb33864b1cc48712abd84a80"
      }
    }
    
  5. Create a new file in the root folder [YOUR-REPO]/_config.yml and add this line

    include: [".well-known"]
    
  6. Navigate to github.com/[USER]/[YOUR-REPO]/settings/pages

  7. Under "Build and deployment" select "Deploy from branch" then below select branch "Main /(root)"

  8. Under "Custom domain" type your naked nostrurl.com (github might complain, ignore)

  9. Below it, check Enforce HTTPS. Sometimes this may take a few minutes to be available.

  10. Then head over iris.to/profile/edit or astral.ninja/settings (or other) edit the NIP-05 Indentifier field to reflect "cndx@nostrurl.com" and press Save

  11. You are all set now, enjoy the vanity address.