Hi experts,

I migrated to a new server and I would like to make sure that my nostr.json is properly configured on nginx, how could I test that?

Noob here 🥲

#plebchain #asknostr

Reply to this note

Please Login to reply.

Discussion

Visit your domain /.well-known/nostr.json and verify that your npub in hex format is there.

In nginx, depending on how you're hosting your site, you can place a regular json file at that location in your domain's html directory.

Got any tools to convert npub to hex? I wish nostr.json just used npubs.... More Nostr over-engineering and complexity.

https://nostrcheck.me/converter/

Npubs use the same scheme as Bitcoin addresses.

It looks fine, it worked when I used Apache, but now on nginx i got some issue make CORS working fine, looks fine now, but I does not know if it's enough to have validations here

https://cors-test.codehappy.dev/?url=https%3A%2F%2Fivancarlos.com.br%2F.well-known%2Fnostr.json&origin=https%3A%2F%2Fcors-test.codehappy.dev%2F&method=get

Your nip05 looks valid to me right now.