- CPU - 1GHz
- Memory - 1GiB
- Storage - 8GiB
- OS - Linux
Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
rm -rf get-docker.sh
# Check docker version
sudo docker --versionmkdir ~/liteseed
git clone https://github.com/liteseed/edge ~/liteseed/edgecd ~/liteseed/edge
sudo docker build -t edge .sudo docker volume create liteseed- Open your browser and head to arweave.app.
- Create a new wallet
- Export the wallet keyfile
This will download a json that looks something like below.
{
"kty": "RSA",
"e": "AQAB",
"n": "aaaaaaaaaaaaa",
"d": "aaaaaaaaaaaaa",
"p": "aaaaaaaaaaaaa",
"q": "aaaaaaaaaaaaa",
"dp": "aaaaaaaaaaaaa",
"dq": "aaaaaaaaaaaaa",
"qi": "aaaaaaaaaaaaa"
}Caution
Please store your keyfile carefully. Do not share with anyone, and don't lose it.
Backup your wallet in a safe place.
Head back to your server.
Create a json file called signer.json
sudo nano /var/lib/docker/volumes/liteseed/_data/signer.jsonNext paste the content of your keyfile into signer.json using nano or vim.
Save and exit using ctrl + X on the keyboard.
Save the information that appears
Get your address and head to discord for the tokens.
sudo docker run -v liteseed:/data edge balancesudo docker run -v liteseed:/data edge migrateexport EXTERNAL_PORT=8080 # change it if you want
sudo docker run -p $EXTERNAL_PORT:8080 -v liteseed:/data edge startYou can use tmux, screen or just add param -d for running in background.
export EXTERNAL_PORT=8080 # change it if you want
sudo docker run -d -p $EXTERNAL_PORT:8080 -v liteseed:/data edge startThere're 2 options you can follow to map your domain with the edge service. Only choose 1.
Go to your DNS service, add A record your domain to IP WITHOUT proxy (DNS only).
sudo apt update
sudo apt install -y certbot nginxsudo certbot certonly --manual --preferred-challenges dns \
--email <your-email-address> \
-d <your-domain.abc>sudo nano /etc/nginx/sites-available/default
# Force redirects from HTTP to HTTPS
server {
listen 80;
listen [::]:80;
server_name <your-domain.abc>;
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 <your-domain.abc>;
ssl_certificate /etc/letsencrypt/live/<your-domain.abc>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<your-domain.abc>/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;
}
}
Save and exit nano.
Test the config
sudo nginx -tAnd restart nginx
sudo service nginx restartGo to your Cloudflare DNS service, add A record your domain to IP WITH proxy.
Go to Rules > Origin Rules
Click on + Create rule, set your Rule name (required) and config field Hostname equals to your domain has setup above.
And Rewrite to... your port. (8080)
Then click deploy.
Check if your domain return data like that:
{
"Address": "<address>",
"Gateway": {
"URL": "https://arweave.net"
},
"Name": "Edge",
"Version": "0.1.0"
}Then you are good to stake
export URL="<your-url>" # example: https://liteseed.p10node.com/
sudo docker run -v liteseed:/data edge stake -u "$URL"Warning
You need to have balance before stake, please check your balance with sudo docker run -v liteseed:/data edge balance and faucet if needed.
Derived from github.com/p10node/tutorial by @p10node.
Check out their work - https://p10node.com
ar, liteseed, docker, go, domain