XMRig self-hosted dashboard

XMRig self-hosted dashboard

By Jmztaylor | jmztaylor | 26 May 2020


This is my first post so bear with me.

I created a XMRig dashboard that is completely self hosted and doesn't rely on third party services.  This allows you to have a clean simple interface to monitor your rigs.  This is not a command and control dashboard.  It is purely a read only service.

Requirements:

So log on to the server you want to host from

And clone the repo

git clone https://github.com/JmzTaylor/JmzXMR-web.git

Then move into the directory

cd JmzXMR-web

 

We will need to edit the environment variables so move .env.example to .env and edit

cp .env.sample .env
nano .env

 

Edit the values as need.  Here is an explanation of all of them.  All are required except the TG_ ones

MYSQL_RANDOM_ROOT_PASSWORD=yes # Leave as is. Generates random root password
MYSQL_DATABASE= # Any database name you want.  
MYSQL_USER= # Any mysql user name you want
MYSQL_PASSWORD= # Any password you want. Completely random is best https://passwordsgenerator.net/
LOGIN_USERNAME= # this is the username you will use to log into the website
LOGIN_PASSWORD= # this is the password you will use to log into the site
TG_API_KEY= # OPTIONAL: This is a telegram bot api key if you wish to have Telegram status messages sent to you
TG_CHAT_ID= # OPTIONAL: This is the telegram chat id for the bot.

After that, all there is to do is run the docker compose file

docker-compose up --build -d

 

Now the site will be running at http://localhost

If you have other items running on port 80 feel free to edit the docker-compose file and change the port.

How do you rate this article?


2

0


jmztaylor
jmztaylor

This is just for me to write down some things from time to time and maybe learn something in process.

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.