Your cart is currently empty!
How to get a verification badge using your own server on Damus
Table of Contents
1. Convert Public Key to HEX format
- Copy the Public Key from the Damus home screen
- Open Damus’ KeyConverter and convert Public Key to HEX format
2. Creating a JSON file
- Use a code editor (e.g. XCode on Mac)
- Create a new folder on your desktop
- Create “nostr.json” file
- Enter the code below and replace <name> with your own Damus ID name (the string after @), and <pubkey> with the hex key created above.
{"names": {"<name>": "<pubkey>"}}
3. Upload JSON file
- Open the server’s file manager
- Create a “.well-known” folder in the public_html folder
- Upload the nostr.json file in the “.well-known” folder
4. Enter CORS settings in .htaccess file
Add the following code between the IfModule parentheses in the .htaccess file depending on the server software.
- For Apache:
Header set Access-Control-Allow-Origin "*"
- For Nginx:
add_header 'Access-Control-Allow-Origin' '*';
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Header set Access-Control-Allow-Origin "*"
</IfModule>
The server I’m using is an XServer, so I used Apache’s.
5. Set NIP-05 VERIFICATION
- Tap “Edit” on the Damus home screen
- Enter “DamusIDname@yourservername” in NIP-05 VERIFICATION
- Tap “Save”
If configured correctly, the authentication batch will be your server name. Tap the verification badge to access your site.
Comments
Featured products
-
[WAV] Hiphop and Rap Music – Genx Beats
$7.00 or more -
[WAV] Hiphop and Rap Music Vol. 2 – Genx Beats
$7.00 or more -
[WAV] Hiphop and Rap Music Vol. 3 – Genx Beats
$7.00 or more
Leave a Reply