Skip to content

Web Server

Pau edited this page Feb 23, 2021 · 10 revisions

WebServer Usage

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.

Server CLI

The server will output it's status and logs in the interface, there are some commands available for you to interact with it:

  • help Displays all the available commands.
  • version Displays the current server version.
  • port Displays the server running port.
  • blacklist Displays the current blacklisted IP's.
  • stop Stops the server ;).
  • More commands are coming in the future...

Configuration

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": [

    ]
}

Clone this wiki locally