Separated config
This commit is contained in:
15
cnn_classification_service/config.py
Normal file
15
cnn_classification_service/config.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
|
||||
|
||||
class Config:
|
||||
PIKA_URL = os.environ['PIKA_URL']
|
||||
PIKA_OUTPUT_EXCHANGE = os.environ['PIKA_OUTPUT_EXCHANGE']
|
||||
PIKA_INPUT_EXCHANGE = os.environ['PIKA_INPUT_EXCHANGE']
|
||||
|
||||
MODEL_INFO_URL = os.environ.get("MODEL_INFO_URL", "http://model-service/model/cnn/$default")
|
||||
STORAGE_SERVICE_URL = os.environ.get("STORAGE_SERVICE_URL", "http://storage-service/")
|
||||
|
||||
SENTRY_DSN = os.environ.get("SENTRY_DSN")
|
||||
|
||||
RELEASE_ID = os.environ.get('RELEASE_ID', 'test')
|
||||
RELEASEMODE = os.environ.get('RELEASEMODE', 'dev')
|
||||
Reference in New Issue
Block a user