You can’t use NVK’s Github instructions if you’re self-hosting.
Just add this file to your web server root:
/.well-known/nostr.json
containing:
{<br> "names": {<br> “[your name]”: “[your pubkey hex]”<br> }<br>}
and add this line to your .htaccess file:Header set Access-Control-Allow-Origin “*”