diff --git a/Dockerfile b/Dockerfile index 8078bf0eac..b7a33a9d52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -145,6 +145,7 @@ RUN pip3 install uv && \ COPY --chown=$UID:$GID --from=build /app/build /app/build COPY --chown=$UID:$GID --from=build /app/CHANGELOG.md /app/CHANGELOG.md COPY --chown=$UID:$GID --from=build /app/package.json /app/package.json +COPY --chown=$UID:$GID ./rt-static /app/rt-static # copy backend files COPY --chown=$UID:$GID ./backend . diff --git a/backend/apps/webui/routers/auths.py b/backend/apps/webui/routers/auths.py index 9676f78b56..e68cad7f00 100644 --- a/backend/apps/webui/routers/auths.py +++ b/backend/apps/webui/routers/auths.py @@ -132,7 +132,7 @@ async def signin(request: Request, response: Response, form_data: SigninForm): trusted_email = decode_token_from_alb(jwt)["email"] trusted_email = trusted_email.lower() trusted_name = trusted_email - + if WEBUI_AUTH_TRUSTED_NAME_HEADER: trusted_name = request.headers.get( WEBUI_AUTH_TRUSTED_NAME_HEADER, trusted_email diff --git a/backend/utils/utils.py b/backend/utils/utils.py index ddac6f2181..0a92ddcde0 100644 --- a/backend/utils/utils.py +++ b/backend/utils/utils.py @@ -54,7 +54,7 @@ def decode_token(token: str) -> Optional[dict]: except Exception: return None - + def decode_token_from_alb(token: str) -> Optional[dict]: try: payload = jwt.decode(token, options={"verify_signature": False}) diff --git a/rt-static/favicon.png b/rt-static/favicon.png new file mode 100644 index 0000000000..cc13ab97e1 Binary files /dev/null and b/rt-static/favicon.png differ diff --git a/rt-static/splash.png b/rt-static/splash.png new file mode 100644 index 0000000000..87a86b7208 Binary files /dev/null and b/rt-static/splash.png differ