Torma Kristóf
fcbd0e9426
All checks were successful
continuous-integration/drone/push Build is passing
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
import os
|
|
|
|
|
|
"""
|
|
Main Flask RESTful API
|
|
"""
|
|
|
|
|
|
__author__ = "@tormakris"
|
|
__copyright__ = "Copyright 2020, Birbnetes Team"
|
|
__module_name__ = "app"
|
|
__version__text__ = "1"
|
|
|
|
|
|
PORT = os.environ.get("INPUT_SERVICE_PORT", 8080)
|
|
DEBUG = os.environ.get("INPUT_SERVICE_DEBUG", True)
|
|
|
|
|
|
SENTRY_DSN = os.environ.get("SENTRY_DSN")
|
|
RELEASE_ID = os.environ.get("RELEASE_ID", "test")
|
|
RELEASEMODE = os.environ.get("INPUT_SERVICE_RELEASEMODE", "dev")
|
|
|
|
RABBITMQ_HOST = os.getenv("INPUT_RABBITMQ_HOSTNAME", "localhost")
|
|
RABBITMQ_EXCHANGE = os.getenv("INPUT_RABBITMQ_EXCHANGE", "dev")
|
|
RABBITMQ_QUEUE = os.getenv("INPUT_RABBITMQ_QUEUE", "wave-extract")
|
|
RABBITMQ_USERNAME = os.getenv("INPUT_RABBITMQ_USERNAME", "rabbitmq")
|
|
RABBITMQ_PASSWORD = os.getenv("INPUT_RABBITMQ_PASSWORD", "rabbitmq")
|
|
|
|
POSTGRES_HOSTNAME = os.getenv("INPUT_POSTGRES_HOSTNAME", "localhost")
|
|
POSTGRES_USERNAME = os.getenv("INPUT_POSTGRES_USERNAME", "input-service")
|
|
POSTGRES_PASSWORD = os.getenv("INPUT_POSTGRES_PASSWORD", "input-service")
|
|
POSTGRES_DB = os.getenv("INPUT_POSTGRES_DB", "input-service")
|
|
|
|
STORAGE_HOSTNAME = os.getenv("INPUT_STORAGE_HOSTNAME", "localhost:8042")
|