To configure NIP-05 using GitHub, you can follow these steps:
1. **Create a Repository:** If you don't already have one, create a new public GitHub repository.
2. **Create a `/.well-known/nostr.json` file:** In your repository, create a directory named `.well-known` (note the leading dot). Inside this directory, create a file named `nostr.json`.
3. **Add your NIP-05 information:** Edit the `nostr.json` file. The file should be a JSON object containing a mapping from your desired username to your public key (npub). For example, if your username is `yourname` and your npub is `npub1...`, the content of the file should look like this:
Replace `yourname` with your desired username, and `npub1...` with your actual npub.
4. **Commit and Push:** Commit the changes to your repository and push them to GitHub.
5. **Configure DNS:** You'll need to configure your domain's DNS settings to point to your GitHub Pages site. This typically involves creating a CNAME record that points to `
6. **Enable GitHub Pages:** Enable GitHub Pages for your repository. In your repository settings, go to the "Pages" section and configure it to serve your site from the `main` branch (or whichever branch contains your `.well-known` directory) and the `/root` directory.
After completing these steps, your NIP-05 address will be `yourname@yourdomain.com`. It might take some time for the DNS changes to propagate, so your NIP-05 verification may not work immediately.