Property | Description | Default |
---|---|---|
ConfigFile | Path and filename to the config file | OS dependent |
LogFileMain | Path and filename to the main log file | stdout |
LogFileHTTPError | Path and filename to the HTTP error log | stdout |
LogFileHTTPAccess | Path and filename to the HTTP access log | stdout |
ControlsFiles | Path of the directory containing controls files | OS dependent |
ListenPort | Local TCP port where loxwebhook will listen. You can choose any valid and free local port as long as loxwebhook is reachable on port 443 from the public internet. | 443 |
PublicURI | URI (host and domain) where loxwebhook will be reachable on the public internet | none |
LetsEncryptCache | Path of the directory where we will store the Let’s Encrypt cache. It’s important to keep the cache during restarts to avoid hitting Let’s Encrypt rate limits | ./cache/letsencrypt |
MiniserverURL | URL to reach the Loxone Miniserver including protocol and port http://192.168.123.1:80 |
none |
MiniserverUser | Username to access the Loxone Miniserver | admin |
MiniserverPassword | Password to access the Loxone Miniserver | admin |
MiniserverTimeout | Timeout (seconds) for requests to Loxone Miniserver | 2 |
You can set config values in a config file, set environment variables or set flags when you start loxwebhook.
Settings in environment variables will overwrite settings in a config file and settings given by flags will overwrite both.
You can use config.example.toml
(online) as a starting point
The default location for the config file depends on the operating system.
.\config.toml
/etc/loxwebhook/config.toml
You can set a custom file location via environment variable or by flag
LOXWEBHOOK_CONFIG
to <path>/<filename>
loxwebhook --config <path>/<filename>
LOXWEBHOOK_
Examples:
set LOXWEBHOOK_LISTENPORT=1234
$env:LOXWEBHOOK_LISTENPORT = 1234
export LOXWEBHOOK_LISTENPORT=1234
Use loxwebhook -h
to get a list with all possible flags