1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Added additional env variables to avoid matching with default for systems, issue #1255

This commit is contained in:
imbeacon
2024-01-30 14:25:25 +02:00
parent c57624d566
commit 671515682a

View File

@@ -114,6 +114,18 @@ def get_env_variables():
'password': environ.get('password')
}
env_variables = {
'host': environ.get('TB_GW_HOST'),
'port': int(environ.get('TB_GW_PORT')) if environ.get('TB_GW_PORT') else None,
'accessToken': environ.get('TB_GW_ACCESS_TOKEN'),
'caCert': environ.get('TB_GW_CA_CERT'),
'privateKey': environ.get('TB_GW_PRIVATE_KEY'),
'cert': environ.get('TB_GW_CERT'),
'clientId': environ.get('TB_GW_CLIENT_ID'),
'username': environ.get('TB_GW_USERNAME'),
'password': environ.get('TB_GW_PASSWORD')
}
converted_env_variables = {}
for (key, value) in env_variables.items():