move to python
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-04-13 17:15:41 +02:00
parent 11ca8ea653
commit 4c73c2e9d7
38 changed files with 225 additions and 7758 deletions

25
src/config.py Normal file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env python
"""
Configuration
"""
import os
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, Birbnetes Team"
__module_name__ = "config"
__version__text__ = "1"
SENTRY_DSN = os.environ.get("SENTRY_DSN")
RELEASE_ID = os.environ.get("RELEASE_ID", "test")
RELEASEMODE = os.environ.get("RELEASEMODE", "dev")
RABBITMQ_HOST = os.getenv("RABBITMQ_HOST", "amqp://guest:guest@localhost/")
RABBITMQ_EXCHANGE = os.getenv("RABBITMQ_EXCHANGE", "output")
INFLUXDB_HOST = os.getenv("INFLUX_HOST", "output-service")
INFLUXDB_PORT = os.getenv("INFLUX_PORT", "8086")
INFLUXDB_USERNAME = os.getenv("INFLUX_USERNAME", "output-service")
INFLUXDB_PASSWORD = os.getenv("INFLUX_PASSWORD", "output-service-supersecret")
INFLUXDB_DB = os.getenv("INFLUX_DB", "output-service")