ligess fmt

This commit is contained in:
openoms
2023-03-19 08:57:57 +00:00
parent 008054e54d
commit 1338140b4c

View File

@@ -5,6 +5,7 @@
* a simple linux VPS with root access * a simple linux VPS with root access
* a (sub)domain with the A Record pointing to public IPaddress of the VPS * a (sub)domain with the A Record pointing to public IPaddress of the VPS
## Install ligess ## Install ligess
*
``` ```
# install nodejs from https://github.com/nodesource/distributions # install nodejs from https://github.com/nodesource/distributions
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo bash - &&\ curl -fsSL https://deb.nodesource.com/setup_19.x | sudo bash - &&\
@@ -28,6 +29,7 @@ sudo -u ligess cp .env.example .env
``` ```
## Edit the .env config file with your info ## Edit the .env config file with your info
*
``` ```
sudo nano /home/ligess/ligess/.env sudo nano /home/ligess/ligess/.env
``` ```
@@ -58,6 +60,7 @@ sudo -u ligess yarn dev
# NIP05 # NIP05
## create a json file called nostr.json with your username and hex pubkey ## create a json file called nostr.json with your username and hex pubkey
*
``` ```
sudo nano /var/www/html/.well-known/nostr.json sudo nano /var/www/html/.well-known/nostr.json
``` ```
@@ -84,6 +87,7 @@ sudo nginx -t && sudo systemctl restart nginx
``` ```
### NIP05 ### NIP05
*
``` ```
location /.well-known/nostr.json { location /.well-known/nostr.json {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';
@@ -91,6 +95,7 @@ location /.well-known/nostr.json {
} }
``` ```
### LNaddress and Zap server ### LNaddress and Zap server
*
``` ```
location /.well-known/lnurlp { location /.well-known/lnurlp {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';