Server Setup

While it is completely fine to serve the devices API with flask during development, it should not be done so in production. This section describes how to serve your devices when they are ready to use.

The skeleton on GitLab provides the necessary files to serve the application with the servers described here. However, you will need to create services and edit configurations of the servers.

Prerequisites

To be able to use the server configurations we provide here, a uWSGI service must be up and running. Before setting up any server see this section to setup the service.

Servers

There are the following servers supported to serve the device API. See the documentation which fits you the most.

You are free to choose any other server which is not listed below, however, it’s recommended to use lighttpd for embedded applications.

Note

All configurations listed will make your device publicly available in the network they are connected to.