Mtctl Panel
A web control panel for mtctl.
Preparing
Requirements:
- mtctl 1.5+
- python 3.7+
Install
Just clone the repo and then go into the folder.
Now you just run the start.sh
file and it will install everything and run the project using flask.
Configuration
You don't have to change anything in the settings file, but if you do need to change the owner or the user who runs mtctl_panel or if you need to run the commands as someone else or if your hostname is not the one you want to show, then you should look into this section.
The configuration file (settings.ini
) accepts the following settings:
[data]
# Owner of the panel. The account of this user will be able to see every server.
owner = ANY USERNAME HERE
# Secret key for saving login details
secretkey = sadoasjdoas1231212
# User of mtctl folder. Only set if mtctl user is not the user running this script.
user =
# Addition to the command execution. Only set if different user has the config. Like "sudo -u USERNAME"
commandaddition =
# Address of the host. Only set if the hostname command doesn't show the FQND domain name.
address =
Usage for testing
Run the start.sh
file if you haven't have it running already.
Just open your browser whilst you are running the start.sh
file and go to your domain with the port 5000 (could be like http://localhost:5000)
Using it with wgsi
Uhmm yeah just use the mtctl_panel.wsgi file that I already included for you.