GUIDE TO SETUP YOUR OWN NIP-05 ADDRESS

- Namecheap domain (cheaper than $2).

- Go to your nc dashboard and activate dynamic dns

- Go to your linux machine install ddclient

- Configure it with your nc token and install it as a service

- Install apache2 on your machine

- Enable mod_headers to accept cors

- Install certbot (let's encrypt) and run it to automatic https your domain

- Go to your webserver dir, create a dir named .well-known

- Touch a file named nostr.json

- Write on it based on nips.be/5 your display name attached to your 32 hex-code key.

Reply to this note

Please Login to reply.

Discussion

Thanks!

you are welcome, if you need help, tag me and I will check!

Some troubles you can find:

- Correct set up of dynamic dns on nc panel, try to activate the dns to point the correct url, for example you would like to use relay.mydomain.dot then on your nc panel set up the name relay pointing to your ip before run ddclient to test.... you should wait some minutes depending on the TLD you choose to update records... if you use google dns or other powerful dns servers you will get it faster.

- Enable the apache CORS to correctly allow clients get your nostr.json file. This issue is related with your host or virtualhost on apache dirs. You need to check your apache2.conf and activate the mod_headers and also activate it for your host/virtualhost. I advise you not to activate cors in all your sites instead of activate in the specific dir.

To do this on Windows machine (I do not recommend install a webserver on windows but....) you can install a namecheap app that allows you to update your dynamic ip to namecheap servers. Also you need to install some kind of wamp (windows apache mysql and php) to easy and fast install

I am not running this on a caddy server but I understand if you know how to run caddy or nginx, you should be able to write your .well-known dir and make the nostr.json file.