This commit is contained in:
parent
c18dbb8d06
commit
2e31e99aae
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import logging
|
|
||||||
import musicbrainzngs
|
import musicbrainzngs
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
from flask_restful import Api
|
from flask_restful import Api
|
||||||
@ -12,7 +11,7 @@ from healthcheck import HealthCheck
|
|||||||
|
|
||||||
from flaskaddons.marshm import ma
|
from flaskaddons.marshm import ma
|
||||||
from flaskaddons.fred import flaskred
|
from flaskaddons.fred import flaskred
|
||||||
from utils.config import SENTRY_DSN, RELEASEMODE, RELEASE_ID, PORT, DEBUG, REDIS_URL, ALLOWED_ORIGINS
|
from utils.config import SENTRY_DSN, RELEASEMODE, RELEASE_ID, REDIS_URL, ALLOWED_ORIGINS
|
||||||
from utils import register_all_error_handlers, redis_available
|
from utils import register_all_error_handlers, redis_available
|
||||||
from resources import LoginApi, ListsApi, MeApi, SingleListApi, ItemApi
|
from resources import LoginApi, ListsApi, MeApi, SingleListApi, ItemApi
|
||||||
|
|
||||||
|
@ -5,15 +5,11 @@ import os
|
|||||||
Configuration
|
Configuration
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
__author__ = "@tormakris"
|
__author__ = "@tormakris"
|
||||||
__copyright__ = "Copyright 2020, onSpot Team"
|
__copyright__ = "Copyright 2020, onSpot Team"
|
||||||
__module_name__ = "config"
|
__module_name__ = "config"
|
||||||
__version__text__ = "1"
|
__version__text__ = "1"
|
||||||
|
|
||||||
|
|
||||||
PORT = os.environ.get("ONSPOT_PORT", 8080)
|
|
||||||
DEBUG = os.environ.get("ONSPOT_DEBUG", True)
|
|
||||||
ALLOWED_ORIGINS = os.environ.get('ALLOWED_ORIGINS', '*')
|
ALLOWED_ORIGINS = os.environ.get('ALLOWED_ORIGINS', '*')
|
||||||
|
|
||||||
SENTRY_DSN = os.environ.get("SENTRY_DSN")
|
SENTRY_DSN = os.environ.get("SENTRY_DSN")
|
||||||
|
Loading…
Reference in New Issue
Block a user