Skip to content

noglass/halfMod-WebGUI-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

halfMod-WebGUI-Extension

Adds a Web Server with Control Panel to halfMod

Installation

Copy the repo into your halfMod installation then run the following commands from the terminal:

cd src/extensions/webgui
chmod +x build.sh
./build.sh
cd ../../plugins/
./compile.sh --install webgui_console.cpp

Web Server

The web server files are hosted in ./halfMod/plugins/webgui/www/. This is the default index directory of the web server.
The web server has support for most protocols, including websockets. Check out the webgui_console plugin source for an example.

Adding Login Accounts

Before you can login to the Admin Panel, you need to edit the halfMod/plugins/webgui/accounts.conf file. There are directions and an example in the file.

BTML

BTML is a file format that aims to replace PHP, any file with this extension is treated as a bash script. It is executed and whatever the script outputs is what is served to the requesting client.

Special thanks

Special thanks to MulverineX for developing the Panel frontend.

About

Adds a Web Server with Control Panel to halfMod

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published