Skip to content

Configuring Web Server

Lewis L. Foster edited this page Mar 31, 2020 · 1 revision

The flask web server configuration will look something like

"webserver": {
    "port": 1234,
    "listen": "127.0.0.1",
    "webroot": "https://i.example.com",
    "data_directory": "Config",
    "upload_directory": "data/uploads",
    "admin_auth": {
      "username": "admin",
      "password": "ThisIsASuperStrongP@ssw0rd!"
    }
  }

in Config.json. Here you can set the listen port and address, web root, folder for configuration files, folder for uploads and the authentication for the admin page.

port

This defines the port for the flask web server to listen on

listen

This defines the interface for the flask web server to listen on

webroot

This defines the protocol (http/s) and the domain (and/or subdomain) that the web server is accessible from

data_directory

This defines the directory to store the configuration files

upload_directory

This defines the directory to store the uploaded files

admin_auth

This defines the credentials used for the web admin interface

  • username
    • This defines the username to use for the HTTP authentication
  • password
    • This defines the password to use for the HTTP authentication

Clone this wiki locally