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

Added basic auth env vars

This commit is contained in:
samson0v
2023-08-03 16:00:40 +03:00
parent 108856945b
commit 6277756197

View File

@@ -90,7 +90,7 @@ DEFAULT_DEVICE_FILTER = {
'enable': False
}
SECURITY_VAR = ('accessToken', 'caCert', 'privateKey', 'cert')
SECURITY_VAR = ('accessToken', 'caCert', 'privateKey', 'cert', 'clientId', 'username', 'password')
def load_file(path_to_file):
@@ -107,7 +107,10 @@ def get_env_variables():
'accessToken': environ.get('accessToken'),
'caCert': environ.get('caCert'),
'privateKey': environ.get('privateKey'),
'cert': environ.get('cert')
'cert': environ.get('cert'),
'clientId': environ.get('clientId'),
'username': environ.get('username'),
'password': environ.get('password')
}
converted_env_variables = {}