mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-18 20:15:28 +01:00
Testing
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user