mirror of
https://github.com/netfun2000/hipudding-teslamate.git
synced 2026-02-27 09:44:28 +08:00
7.7 KiB
7.7 KiB
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 | 8 |
| 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:8080). 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 |
| MQTT_NAMESPACE | Inserts a custom namespace into the MQTT topic (optional). For example, with MQTT_NAMESPACE=account_0: teslamate/account_0/cars/$car_id/state. |
|
| 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. |