djbooth007 on Nostr: For NIP05, only need 2 files. Go to your website root folder (ie, httpsdocs, ...
For NIP05, only need 2 files.
Go to your website root folder (ie, httpsdocs, public_html - or something similar)
Create a folder named .well-known
It must start with a period.
In /.well-known folder, create file named .htaccess
Also must start with a period.
.htaccess file should contain this text:
Header set Access-Control-Allow-Origin "*"
Header set X-Frame-Options "SAMEORIGIN"
Create a new file in /.well-known named nostr.json
The contents should be:
{"names":{"bitcoinhatguy":"81e2f952ac7e143f9f661d63da17071de5ee6077a9e3aea8638298c13e13941d"}}
That long string has been calculated from your npub. Hope this helps.
Published at
2023-02-23 04:40:06Event JSON
{
"id": "949df14ec20eb289d908a7e7dc8936d5f451eb7bfaa8c1d926be3f59242088a4",
"pubkey": "182fbb5f031ff231ee32071f1873e69ddc1daced03a15c5c863bf40b5b451f57",
"created_at": 1677127206,
"kind": 1,
"tags": [
[
"e",
"2e5e61ced54047c18bcc2bf0c2dba32d73276b7f68974126bbc8619f747b9e9a",
"",
"root"
],
[
"e",
"ab195e21d7d76eb01aaafb90cce384a10428a3641e5f5e624c4ce335aba8f3ca",
"",
"reply"
],
[
"p",
"81e2f952ac7e143f9f661d63da17071de5ee6077a9e3aea8638298c13e13941d"
]
],
"content": "For NIP05, only need 2 files.\n\nGo to your website root folder (ie, httpsdocs, public_html - or something similar)\n\nCreate a folder named .well-known\nIt must start with a period.\n\nIn /.well-known folder, create file named .htaccess\nAlso must start with a period.\n\n.htaccess file should contain this text:\n\nHeader set Access-Control-Allow-Origin \"*\"\nHeader set X-Frame-Options \"SAMEORIGIN\"\n\nCreate a new file in /.well-known named nostr.json\nThe contents should be:\n\n{\"names\":{\"bitcoinhatguy\":\"81e2f952ac7e143f9f661d63da17071de5ee6077a9e3aea8638298c13e13941d\"}}\n\nThat long string has been calculated from your npub. Hope this helps. ",
"sig": "8ef14b9437dc48e909acc4b0abfd2fa9ba3841b6ddda4137644433eea6037d06ce519705f22782338c63152c2b6100f3fb312cb8e2889bc2b71e43596eb4f641"
}