Skip to content
antonypro edited this page May 1, 2019 · 1 revision

Usage of WebServer:

Requirements:

  • OpenSsl LTS version (1.0.2 series) built.
  • The WebServer built and ready to use (with their shared libraries etc).

After building WebServer and OpenSsl, copy the data folder from the source folder of WebServer, and arrange the folder structure as the following:

├── Parent directory
    ├── data (Mandatory folder name)
    │   ├── settings.js
    │   ├── settings.ui
    │   ├── settings_root.js
    │   ├── settings_root.ui
    │   └── * (other files\folders)
    └── WebServer (Not mandatory folder name)
        ├── WebServer executable
        ├── OpenSsl shared libraries
        └── * (other files\folders)

Please note that the data folder must be both readable and writable, there the private key, public key, the log file, the settings file and the database file will be written after you run WebServer for the first time.

After ran WebServer successfully, type the password of the private key (and repeat it if the private key file don't previously exists), wait for generation of the public key and encrypted private key, if all goes right you'll be ready to receive connections, and the files mentioned above will appears in the data folder.

Now if you want, for example, change the port of the server, close the WebServer app, edit settings.ini and restart the WebServer.

Now to enable creation of users on your server, connect to it using the WalkieTalkie Demo and create the first user account with name root (Name mandatory) and type the password for this user, also note that this user is a power user, it's necessary to create any other user account.

To create other users, log in as root, generate the invitation code on the WebSettings tab and send the code for who you let to create some account, the code is valid once time and if not used expires in one hour.

To add, remove or update features on WebServer edit the WebServer, than edit the javascript files (*.js) containing the commands the user can execute and the files (*.ui) widgets to provide a graphic interface for the users change their passwords, and in the case of the root user, generate invitation code, just some examples.

Clone this wiki locally