Nano Node Monitor
Nano Node Monitor is a server-side PHP-based monitor for Nano and Banano nodes. It connects to a running node via RPC and displays it's status on a simple webpage. Being server-side, it does not expose the RPC interface of the Nano node to the public.
Pulling Docker image
sudo docker pull nanotools/nanonodemonitor
sudo docker run -d -p 80:80 -v ~:/opt --restart=unless-stopped nanotools/nanonodemonitor
This will create a directory called nanoNodeMonitor inside your home directory with the config.php inside it. Edit it according to your needs and you're good to go!
Create a directory called nano and go inside it:
mkdir nano && cd nano
Create a new file called docker-compose.yml with the following contents (but replace the TAG with a proper version):
version: '3' services: monitor: image: "nanotools/nanonodemonitor:TAG" restart: "unless-stopped" ports: - "80:80" volumes: - "~:/opt" node: image: "nanocurrency/nano:TAG" restart: "unless-stopped" ports: - "7075:7075" - "127.0.0.1:7076:7076" volumes: - "~:/root"
Nice! Now execute
sudo docker-compose up -dto start everything.
Inside your home directory you will find a new directory called nanoNodeMonitor, edit the config.php:
You will have to change the node IP to the name of the nodes Docker container e.g.
nano_node_1. Edit the other things as well if you want to.
Running Nano Node with RPC enabled (Tutorial)
Webserver with PHP 8.0
sudo apt-get install php-curl
In your empty webserver directory, e.g.
git clone https://github.com/NanoTools/nanoNodeMonitor .
If you want it to run a subdirectory remove the
. at the end.
modules folder, create your own config file by executing:
cp config.sample.php config.php
You will have to add your node's account to the config file
config.php by modifying the following lines. Make sure to remove the
// in front of
// account of this node $nanoNodeAccount = 'nano_1youraccountname24cq9799nerek153w43yjc9atoaeg3e91cc9zfr89ehj';
Official documentation for creating an account on the node via RPC can be found at the following URL:
If you are running a standalone node you might need to modify the IP-address and the port for the RPC in the file
config.php. It should match the corresponding entries in
// ip address for RPC (default: [::1]) $nanoNodeRPCIP = '127.0.0.1'; // ip address for RPC (default: 7076) $nanoNodeRPCPort = '7076';
Creating a Theme
If you're interested in creating your own theme in addition to the official Light, Dark, and Banano themes, we've made it very simple for you to do so. Check out the Wiki for more info.
Donations to the development of Nano Node Monitor are very welcome to:
Or sponsor the development on GitHub! Thanks!