guard-service/src/config.py

33 lines
1.0 KiB
Python
Raw Normal View History

2020-07-18 12:34:52 +02:00
#!/usr/bin/env python3
import os
"""
Configuration variables
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, Birbnetes Team"
__module_name__ = "config"
__version__text__ = "1"
2020-07-18 14:39:29 +02:00
CLIENT_ID = os.environ.get("GUARD_CLIENT_ID", "guard-service")
2020-07-18 12:34:52 +02:00
SENTRY_DSN = os.environ.get("SENTRY_DSN")
RELEASE_ID = os.environ.get("RELEASE_ID", "test")
RELEASEMODE = os.environ.get("GUARD_SERVICE_RELEASEMODE", "dev")
RABBIT_HOSTNAME = os.getenv("GUARD_RABBITMQ_HOSTNAME", "localhost")
RABBIT_USERNAME = os.getenv("GUARD_RABBITMQ_USERNAME", "guard-service")
RABBIT_PASSWORD = os.getenv("GUARD_RABBITMQ_PASSWORD", "guard-service")
RABBIT_EXCHANGE = os.getenv("GUARD_RABBITMQ_EXCHANGE", "guard-service")
MQTT_HOSTNAME = os.getenv("GUARD_MQTT_HOSTNAME", "localhost")
2020-07-18 14:39:29 +02:00
MQTT_PORT = os.getenv("GUARD_MQTT_PORT", "1883")
2020-07-18 12:34:52 +02:00
MQTT_USERNAME = os.getenv("GUARD_MQTT_USERNAME", "guard-service")
MQTT_PASSWORD = os.getenv("GUARD_MQTT_PASSWORD", "guard-service")
2020-07-18 15:18:19 +02:00
MQTT_TOPIC = os.getenv("GUARD_MQTT_TOPIC", "guard-service")
2020-07-18 14:39:29 +02:00
INPUT_HOSTNAME = os.getenv("INPUT_SVC_HOSTNAME", "input-service")