Added more config options
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a5dd26bbe5
commit
f4870cabc2
@ -13,7 +13,6 @@ from utils import register_all_error_handlers, storage
|
|||||||
# import views
|
# import views
|
||||||
from views import ModelView
|
from views import ModelView
|
||||||
|
|
||||||
|
|
||||||
# Setup sentry
|
# Setup sentry
|
||||||
SENTRY_DSN = os.environ.get("SENTRY_DSN")
|
SENTRY_DSN = os.environ.get("SENTRY_DSN")
|
||||||
if 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_SECRET_KEY'] = os.environ['MINIO_SECRET_KEY']
|
||||||
app.config['MINIO_MODEL_BUCKET_NAME'] = os.environ['MINIO_MODEL_BUCKET_NAME']
|
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_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
|
# important stuff
|
||||||
app.secret_key = os.environ.get('SECRET_KEY', os.urandom(12))
|
app.secret_key = os.environ.get('SECRET_KEY', os.urandom(12))
|
||||||
|
Loading…
Reference in New Issue
Block a user