Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 7.23 KB

environment_variables.md

File metadata and controls

23 lines (21 loc) · 7.23 KB

Environment Variables

TeslaMate accepts the following environment variables for runtime configuration:

Variable Name Description Default Value
DATABASE_USER Username (required)
DATABASE_PASS User password (required)
DATABASE_NAME The database to connect to (required)
DATABASE_HOST Hostname of the database server (required)
DATABASE_PORT Port of the database server 5432
DATABASE_POOL_SIZE Size of the database connection pool 5
VIRTUAL_HOST Host part used for generating URLs throughout the app localhost
CHECK_ORIGIN Configures whether to check the origin header or not. May be true (recommended), false (default) or a comma-separated list of hosts that are allowed (e.g. https://example.com,//another.com:888). Hosts also support wildcards. It defaults to true and, in such case, it will check against the host value in VIRTUAL_HOST. false
PORT Port where the web interface is exposed 4000
DISABLE_MQTT Disables the MQTT feature if true false
MQTT_HOST Hostname of the broker (required unless DISABLE_MQTT is true)
MQTT_USERNAME Username (optional)
MQTT_PASSWORD Password (optional)
MQTT_TLS Enables TLS if true (optional) false
MQTT_TLS_ACCEPT_INVALID_CERTS Accepts invalid certificates if true (optional) false
LOCALE The default locale for the web interface and addresses. Currently available: en (default) and de en
TZ Used to establish the local time zone, e.g. to use the local time in logs. See List of tz database time zones.