Install
Preparing
sudo apt update && sudo apt upgrade -y
sudo apt install -y certbot nginx
Install docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
rm get-docker.sh
docker --version
Build
#Clone latest repository
cd $HOME
mkdir liteseed
git clone https://github.com/liteseed/edge $HOME/liteseed/edge
#Build
cd liteseed/edge
sudo docker build -t edge .
#Create a volume
sudo docker volume create liteseed
#Generate new wallet
sudo docker run -v liteseed:/data edge generate
#migrate the SQLite database in your volume
sudo docker run -v liteseed:/data edge migrate
#Backup wallet from signer.json
cat /var/lib/docker/volumes/liteseed/_data/signer.json
Run your edge node
sudo docker run -d -v liteseed:/data edge start
Map your domain with edge node service
Add A record your domain to edge IP
domain="your_domain" #input your domain, e.g.: liteseed.validator.wiki
certbot --nginx --domain $domain --register-unsafely-without-email --no-redirect --agree-tos
#remove default
rm /etc/nginx/sites-available/default
sudo tee /etc/nginx/sites-available/default > /dev/null << EOF
# Force redirects from HTTP to HTTPS
server {
listen 80;
listen [::]:80;
server_name $domain;
location / {
return 301 https://$host$request_uri;
}
}
# Forward traffic to your node and provide SSL certificates
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name $domain;
ssl_certificate /etc/letsencrypt/live/$domain/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/$domain/privkey.pem;
location / {
proxy_pass http://localhost:8080; # or your port you changed at 6.
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
}
}
EOF
#check if error config
sudo nginx -t
#restart
sudo service nginx restart
Check your edge node
Stake
#Check your balance
sudo docker run -v liteseed:/data edge balance
#Stake to your edge node
sudo docker run -v liteseed:/data edge stake -u $domain
Last updated