This commit is contained in:
iFargle
2023-02-28 13:20:02 +09:00
parent c94e3f0002
commit c4a89ccb88

View File

@@ -14,9 +14,10 @@ from logging.config import dictConfig
COLOR = os.environ["COLOR"].replace('"', '').lower()
COLOR_NAV = COLOR+" darken-1"
COLOR_BTN = COLOR+" darken-3"
DEBUG_STATE = False
AUTH_TYPE = os.environ["AUTH_TYPE"].replace('"', '').lower()
LOG_LEVEL = os.environ["LOG_LEVEL"].replace('"', '').upper()
# If LOG_LEVEL is DEBUG, enable Flask debugging:
DEBUG_STATE = True if LOG_LEVEL == "DEBUG" else False
# Initiate the Flask application and logging:
dictConfig({
@@ -38,6 +39,7 @@ dictConfig({
app = Flask(__name__, static_url_path="/static")
executor = Executor(app)
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1)
app.logger.info("LOG LEVEL SET TO %s", str(LOG_LEVEL))
########################################################################################
# Set Authentication type. Currently "OIDC" and "BASIC"