This is the server-side (i.e., backend) of nato internet services' webrs
. For the client-side, check webrs-client.
webrs-server
takes a JSON file as configuration. Configurable fields are as below:
interface Configuration {
host: string;
port: number;
entry_point: {
path: string;
args: string[];
};
};
See config.json
for example.
You will need to have NodeJS ready before you can build the server.
$ git clone https://github.com/nat-lab/webrs-server
$ cd webrs-server
$ npm i
$ npm install -g typescript
$ tsc
You will need to run bin/main.js
with sufficient permission to launch the program specified as your entry_point
. For example, if you are using BIRD, you may want to do something like this:
sudo -u bird node bin/main.js config.json
webrs-server
itself is distributed under UNLICENSE. Dependencies have their own licenses.