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:
`{
"names": {
“[your name]”: “[your pubkey hex]”
}
}`
and add this line to your .htaccess file:
`Header set Access-Control-Allow-Origin “*”`
