fabaccess/fab_access/config.py

18 lines
633 B
Python
Raw Normal View History

2022-11-03 21:13:35 +01:00
import os
2022-11-03 00:41:51 +01:00
class Config:
2022-11-03 21:21:23 +01:00
mqtt_broker = os.getenv('MQTT_BROKER')
2022-11-03 21:25:09 +01:00
mqtt_port = int(os.getenv('MQTT_PORT'))
2022-11-03 21:21:23 +01:00
mqtt_client_id = os.getenv('MQTT_CLIENT')
mqtt_user_name = os.getenv('MQTT_USERNAME')
mqtt_password = os.getenv('MQTT_PASSWORD')
2022-11-03 00:41:51 +01:00
2022-11-03 21:21:23 +01:00
keycloak_url = os.getenv('KEYCLOAK_URL')
keycloak_user_name = os.getenv('KEYCLOAK_USER_NAME')
2022-11-03 21:13:35 +01:00
keycloak_password = os.getenv('KEYCLOAK_USER_PW')
keycloak_realm = os.getenv('KEYCLOAK_REALM')
2022-11-03 21:21:23 +01:00
db_host_name = os.getenv('DB_HOSTNAME')
db_user_name = os.getenv('DB_USERNAME')
db_password = os.getenv('DB_PASSWORD')
db_database = os.getenv('DB_DATABASE')