Node Status Page Daemon.
Displays node info on simple static webpage with basic API to coin daemon.
nginxpython 3.xpython cherrypycoin daemon rpc
- git clone repo to
/var/www/nodesitecd /var/wwwgit clone https://github.com/theohmproject/OhmieNode.git nodesite
- install deps
apt-get install python3-pippip3 install cherrpy
- make launch script excecutable
chmod 755 /var/www/nodesite/scripts/launch
- setup config..
cd /var/www/nodesitemkdir .env && cp default.conf.json .env/conf.json- edit config: set rpc user and password.
- setup nginx config for site
- proxy pass
/api/to127.0.0.1:8771with nginx
- proxy pass
root /var/www/nodesite/public/;
index index.html;
location /api/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $remote_addr;
proxy_pass http://127.0.0.1:8771/;
}
- Assure nginx is setup and restarted..
- Assure coin daemon is active and
/var/www/nodesite/.env/conf.jsonis setup correclty. - launch daemon with
./launch startfrom/var/www/nodesite/scripts