-
Notifications
You must be signed in to change notification settings - Fork 7
Configuration
Johann Forster edited this page Jun 12, 2019
·
1 revision
The application is ready to use with no configration needed!
You might want to change some variables if you
- run multiple wazigate-edge applications on the same machine (maybe for testing) or if you
- use wazigate-edge inside a docker-container.
Env Variables
WAZIUP_HTTP_ADDR = :80 HTTP Listen Address
WAZIUP_HTTPS_ADDR = :443 HTTPS Listen Address
WAZIUP_MQTT_ADDR = :1883 MQTT Listen Address
WAZIUP_MQTTS_ADDR = :8883 MQTTS Listen Address
WAZIUP_TLS_CRT = TLS Cert File (.crt)
WAZIUP_TLS_KEY = TLS Key File (.key)
WAZIUP_MONGO = localhost:27017 MongoDB Address
WAZIUP_CLOUDS_FILE = clouds.json Clouds Config File
Note that MQTT via Websocket is available together with the REST API on HTTP and HTTPS. To disable serving static files of www, use -www "" (an empty string).
Commandline Arguments
-crt TLS Cert File (.crt)
-key TLS Key File (.key)
-www HTTP files root, default "/var/www"
-db MongoDB address, default "localhost:27017"
Commandline arguments override env variables! Secure connections will only be used if -crt and -key are present.
Config Files
clouds.json Saves /clouds setttings
Logging Files
All files at log/*.txt
are log files generated with each session.