How to start lipi server
MazeMap provides lipi in a docker container that you can download and start. Follow the instructions below to get it working
Environment variables
LIPI_API_KEY - Api key from lipi config in Map Editor
POSITION_PROVIDER_USERNAME - Username of the position provider (CMX, Aruba ALE...)
POSITION_PROVIDER_PASSWORD - Password of the position provider (CMX, Aruba ALE...)
POSITION_PROVIDER_HTTP_SCHEME - The http protocol of the position provider (CMX, Aruba ALE...)
Required variables
LIPI_API_KEY
POSITION_PROVIDER_USERNAME
POSITION_PROVIDER_PASSWORD
Optional variables and defaults
POSITION_PROVIDER_HTTP_SCHEME='https'
Running LIPI
1 . Download the lipi
Download from https://www.jottacloud.com/s/113fa527a64ca7b4c2fb5f22ba0f217b8b5 .
Take note of the version of the tar file.
Eg. for a file named
lipi_server_4.1.0_0.tar
, the version will be4.1.0_0
2 . Load the image
VERSION=<the-tar-version> docker load --input lipi_server_$VERSION.tar
3 . Start Server
VERSION=<the-tar-version> LIPI_API_KEY=<lipi-api-key> docker run -e LIPI_API_KEY=$LIPI_API_KEY \ -e POSITION_PROVIDER_USERNAME=user \ -e POSITION_PROVIDER_PASSWORD=pass \ -p 4431:443 \ --name lipi-server \ lipi-server:$VERSION
4 . Start Server with a local config.json
file
VERSION=<the-tar-version> LIPI_API_KEY=<lipi-api-key> docker run -e LIPI_API_KEY=$LIPI_API_KEY \ -e POSITION_PROVIDER_USERNAME=<put-username-here> \ -e POSITION_PROVIDER_PASSWORD=<put-password-here> \ -p 443:443 \ -v <your-config-path>:/srv/config.json \ --name lipi-server \ lipi-server:$VERSION