-
Notifications
You must be signed in to change notification settings - Fork 0
Web Server
Pau edited this page Feb 23, 2021
·
10 revisions
To use the webserver you just have to specify a PML file for it to load, by default it must be called index.pml and be in the same folder as the server.
You can change this in the server configuration.
The server will output it's status and logs in the interface, there are some commands available for you to interact with it:
-
helpDisplays all the available commands. -
versionDisplays the current server version. -
portDisplays the server running port. -
blacklistDisplays the current blacklisted IP's. -
stopStops the server ;). - More commands are coming in the future...
You can specify the location of the main pml file, the server port, and the blacklisted IP's in the config.json.
This is an example, and the default config.json file for the server.
{
"port": 5204,
"main": "index.pml",
"blacklist": [
]
}