diff --git a/Dockerfile b/Dockerfile index 728ad73..6e34b93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,7 @@ COPY --chown=app:app --from=builder ${WORKDIR} . # General variables ENV TZ="UTC" +ENV COLOR="blue-grey" ENV HS_SERVER="http://localhost/" ENV KEY="" ENV SCRIPT_NAME=/ diff --git a/server.py b/server.py index b2bd0e6..3515736 100644 --- a/server.py +++ b/server.py @@ -9,8 +9,9 @@ from werkzeug.middleware.proxy_fix import ProxyFix # Global vars # Colors: https://materializecss.com/color.html -COLOR_NAV = "blue-grey darken-1" -COLOR_BTN = "blue-grey darken-3" +COLOR = os.environ["COLOR"].replace('"', '') +COLOR_NAV = COLOR+" darken-1" +COLOR_BTN = COLOR+" darken-3" DEBUG_STATE = True AUTH_TYPE = os.environ["AUTH_TYPE"].replace('"', '') STATIC_URL_PATH = "/static" @@ -87,12 +88,12 @@ elif AUTH_TYPE.lower() == "basic": basic_auth = BasicAuth(app) # Make a fake class. If someone knows a better way to dynamically load these... please fix this. class oidc(): - def require_login(): + def require_login(self=""): pass else: # Make a fake class. If someone knows a better way to dynamically load these... please fix this. class oidc(): - def require_login(): + def require_login(self=""): pass ########################################################################################