Added more config options
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Pünkösd Marcell 2020-04-21 18:45:45 +02:00
parent a5dd26bbe5
commit f4870cabc2
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,6 @@ from utils import register_all_error_handlers, storage
# import views
from views import ModelView
# Setup sentry
SENTRY_DSN = os.environ.get("SENTRY_DSN")
if SENTRY_DSN:
@ -35,7 +34,8 @@ app.config['MINIO_ACCESS_KEY'] = os.environ['MINIO_ACCESS_KEY']
app.config['MINIO_SECRET_KEY'] = os.environ['MINIO_SECRET_KEY']
app.config['MINIO_MODEL_BUCKET_NAME'] = os.environ['MINIO_MODEL_BUCKET_NAME']
app.config['MINIO_MEANS_BUCKET_NAME'] = os.environ['MINIO_MEANS_BUCKET_NAME']
app.config['MINIO_SECURE'] = os.environ.get('MINIO_SECURE', False)
app.config['MINIO_REGION'] = os.environ.get('MINIO_REGION', None)
# important stuff
app.secret_key = os.environ.get('SECRET_KEY', os.urandom(12))