mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-18 12:34:20 +01:00
boottarp the zapper node
This commit is contained in:
@@ -28,6 +28,12 @@
|
||||
sudo -u ligess cp .env.example .env
|
||||
```
|
||||
|
||||
## Bootstrap the zapper node
|
||||
* generate a new private key at https://iris.to
|
||||
* save the hex private key for ligess
|
||||
* save the hex public key (for NIP-05)
|
||||
* keep the window open to add the NIP-05 identifier when ready
|
||||
|
||||
## Edit the .env config file with your info
|
||||
*
|
||||
```
|
||||
@@ -59,7 +65,7 @@
|
||||
|
||||
|
||||
# NIP05
|
||||
## create a json file called nostr.json with your username and hex pubkey
|
||||
## create a json file called nostr.json with your and the zapper username and hex pubkeys
|
||||
*
|
||||
```
|
||||
sudo nano /var/www/html/.well-known/nostr.json
|
||||
@@ -67,13 +73,12 @@
|
||||
```
|
||||
{
|
||||
"names": {
|
||||
"username1": "hex_public_key_1",
|
||||
"username2": "hex_public_key_2",
|
||||
"username": "hex_public_key_1",
|
||||
"zapper": "hex_public_key_2"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
# SSL config
|
||||
## Set up SSL for a (sub)domain
|
||||
* use ths script to set up nginx: https://github.com/openoms/bitcoin-tutorials/tree/master/nginx#add-a-custom-subdomain
|
||||
@@ -86,7 +91,7 @@
|
||||
sudo nginx -t && sudo systemctl restart nginx
|
||||
```
|
||||
|
||||
### NIP05
|
||||
### NIP-05
|
||||
*
|
||||
```
|
||||
location /.well-known/nostr.json {
|
||||
@@ -114,3 +119,7 @@
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Finish
|
||||
* add the NIP-05 identifier and lightning address to your nostr profile
|
||||
* add the NIP-05 identifier to the zapper profile and broadcast it's relays publicly
|
||||
|
||||
Reference in New Issue
Block a user