From 648cb0a929bcd448458336135625742c9d1f8c01 Mon Sep 17 00:00:00 2001 From: Space-Banane Date: Wed, 20 May 2026 21:34:26 +0200 Subject: [PATCH] Serve favicon from static public assets --- backend/main.py | 3 +++ index.html | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/main.py b/backend/main.py index 63b71f5..608fca1 100644 --- a/backend/main.py +++ b/backend/main.py @@ -16,6 +16,7 @@ from fastapi.staticfiles import StaticFiles from pydantic import BaseModel STATIC_DIR = Path("frontend/dist") +PUBLIC_DIR = Path("public") SESSION_COOKIE = "jellomator_session" DB_HOST = os.getenv("DB_HOST", "mariadb") DB_PORT = int(os.getenv("DB_PORT", "3306")) @@ -295,6 +296,8 @@ def update_link( if STATIC_DIR.exists(): app.mount("/assets", StaticFiles(directory=STATIC_DIR / "assets"), name="assets") +if PUBLIC_DIR.exists(): + app.mount("/static", StaticFiles(directory=PUBLIC_DIR), name="public") @app.get("/{path:path}") diff --git a/index.html b/index.html index c0689da..5ee8cb3 100644 --- a/index.html +++ b/index.html @@ -4,9 +4,9 @@ - - - + + + Jellomator