Thanks everyone.

Still figuring out how to get NIP-05 to work with my domain.

None of the guides I've found seem dummy proof enough for me to figure out.

Once I do I might write one up myself. #[1]

Reply to this note

Please Login to reply.

Discussion

Getting a 404 for https://btcgandalf.com/.well-known/nostr.json

Where are you trying to host it?

Never mind it literally just started working after I refreshed lol

Yeah I fixed it thanks to your Tweet url path giving me a clue on how to do it. I had my .well-known file outside my public_html root folder. Moved it in and boom.

Do I put the NIP-05 identifier field on my nostr client as gandalf@btcgandalf.com?

Yeah.

I think you might need to do this as well: https://support.hostinger.com/en/articles/6320787-do-you-support-cors

Browser based clients might not be able to verify otherwise.

Check @nvk 's guide.... should work

https://nvk.org/n00b-nip5

1) Create a directory in the root directory called ".well-known"

2) Create a file called nostr.json

3) Put this in it:

{

"names": {

"BTCGandalf": "ee0e01eb17fc6cb4cd2d9300d2f8945b51056514f156c6bc6d491b74496d161a"

}

}

4) Create a file in the root directory called ".htaccess"

5) Put this line in it:

Header set Access-Control-Allow-Origin "*"

6) In the NIP05 field put this:

BTCGandalf@BTCGandalf.com

Or, since your domain name is the same as the name you want to be referred to as, you could just replace the name with "_" instead. For example in nostr.json:

"_": "ee0e01eb17fc6cb4cd2d9300d2f8945b51056514f156c6bc6d491b74496d161a"

And in NIP05:

_@BTCGandalf.com

Great tutorial by #[5] https://orangepill.dev/nostr-guides/guide-to-verify-nostr-profile-nip05-identifier-with-your-domain/

I ended up having to add this into my htaccess file:

Header always set Access-Control-Allow-Origin "*"

Header always set Access-Control-Allow-Headers "*"

Header always set Access-Control-Allow-Methods "GET"

Good luck Gandalf 🤙

Thanks for sharing this. Also, Gandalf if you are stuck somewhere and need help setting it up, I could help you out.