You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: send TOKEN as Bearer header via FleetAuth middleware
Replace TOKEN query-param injection (?token=...) with a dedicated
FleetAuth middleware that sends the token as an Authorization: Bearer
header on all API and auth requests, including the streaming subscribe
message. Legacy ?token= format remains supported for backward
compatibility. Update docs accordingly.
Copy file name to clipboardExpand all lines: website/docs/configuration/environment_variables.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ TeslaMate accepts the following environment variables for runtime configuration:
48
48
|**TESLA_WSS_HOST**| Hostname of the Tesla streaming | wss://streaming.vn.teslamotors.com (or for chinese: wss://streaming.vn.cloud.tesla.cn) |
49
49
|**TESLA_WSS_TLS_ACCEPT_INVALID_CERTS**| Accepts invalid certificates on TESLA_WSS_HOST if `true`||
50
50
|**TESLA_WSS_USE_VIN**| Use the `vin` field instead of `vid` to connect stream if `true`||
51
-
|**TOKEN**| Token given by a third party Tesla API provider. This `TOKEN`is added to each API request and the format must be `?token=xxxx-xxxx-xxxx`||
51
+
|**TOKEN**| Token given by a third party Tesla API provider. It is sent as an `Authorization: Bearer` header on each API request (and in the streaming subscribe message), so provide only the raw token, e.g. `xxxx-xxxx-xxxx`. For backward compatibility the legacy `?token=xxxx-xxxx-xxxx` format is still accepted.||
52
52
|**POLLING_ASLEEP_INTERVAL**| Interval between API fetch when the vehicle is asleep (in seconds). **Important: Do not alter this setting unless you are certain of the implications.**| 30 |
53
53
|**POLLING_CHARGING_INTERVAL**| Minimum interval between API fetch when the vehicle is charging (in seconds). **Important: Do not alter this setting unless you are certain of the implications.**| 5 |
54
54
|**POLLING_DRIVING_INTERVAL**| Interval between API fetch when the vehicle is driving (in seconds). **Important: Do not alter this setting unless you are certain of the implications.**| 2.5 |
0 commit comments