This commit is contained in:
iFargle
2023-02-20 21:07:32 +09:00
parent 52a4d2b010
commit 1c9dbae182
2 changed files with 6 additions and 4 deletions

View File

@@ -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=/

View File

@@ -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
########################################################################################