项目作者: dev-ptera

项目描述 :
batman rep's custom node monitor theme.
高级语言: PHP
项目地址: git://github.com/dev-ptera/batman-rep-monitor.git
创建时间: 2021-04-09T23:56:06Z
项目社区:https://github.com/dev-ptera/batman-rep-monitor

开源协议:

下载


Batman Representative Node Monitor

This repo contains custom node monitor styles for the banano batman representative.

This node monitor is set up using the manual Nano Node Monitor integration guide, found here.

Setup Nginx

Setup nginx following this tutorial.

Not all the steps are required, so I’ve compressed the required steps into the commands below.

  1. sudo apt-get update
  2. sudo apt-get install nginx
  3. sudo apt-get install php-fpm php-mysql
  4. sudo apt-get install php-curl
  5. sudo ufw allow 'Nginx HTTP'

Replace Default Nginx Settings

Replace the default sites-available file with the file found in this repo, and add your public IP where specified.

  1. cd etc/nginx/sites-available
  2. sudo chmod -R 777 *
  3. [Update IP in etc/nginx/sites-available]
  4. sudo systemctl reload nginx

Setup Default Node Monitor Tool

Once Nginx is installed and serving a temporary web site, we can add the nano node monitor tool.

  1. cd /var/www
  2. sudo chmod +rwx html
  3. cd html
  4. sudo rm index.nginx-debian.html
  5. sudo git clone https://github.com/NanoTools/nanoNodeMonitor .
  6. cd ..
  7. sudo chmod -R 777 *

In summary these commands:

  1. Go to where the static html site is served.
  2. Add edit permission to the folder
  3. Remove the default static site
  4. Git clone the nano monitor repo
  5. Up one level
  6. Make all these files editable

Add Batman theme customization

Replace the content found within the default nano monitor tool with the content found in this repo.

Add customizations as needed.

  1. cp var/www/html/modules/config.php /var/www/html/modules
  2. cp -r var/www/html/static/gothem/ /var/www/html/static/themes
  3. cp -r var/www/html/static/img/ /var/www/html/static
  4. cp var/www/html/index.php /var/www/html