updates to compose file .env file final one_time_linke release
This commit is contained in:
@@ -356,6 +356,15 @@ async def menu_page(request: Request) -> HTMLResponse:
|
||||
return RedirectResponse(url="/login")
|
||||
return FileResponse(os.path.join(FRONTEND_DIR, "menu.html"))
|
||||
|
||||
@app.get("/favicon.ico")
|
||||
async def favicon() -> Response:
|
||||
"""Serve favicon from /static/favicon.png if present (avoids 404 noise)."""
|
||||
path = os.path.join(FRONTEND_DIR, "favicon.png")
|
||||
if os.path.exists(path):
|
||||
with open(path, "rb") as f:
|
||||
return Response(content=f.read(), media_type="image/png")
|
||||
return Response(status_code=204)
|
||||
|
||||
@app.post("/api/ping")
|
||||
async def api_ping() -> dict:
|
||||
"""Connectivity test endpoint used by the UI to display a temporary banner."""
|
||||
|
||||
@@ -15,11 +15,11 @@ class Settings:
|
||||
"""App settings loaded from environment variables (.env)."""
|
||||
immich_base_url: str
|
||||
immich_api_key: str
|
||||
max_concurrent: int = 3
|
||||
max_concurrent: int
|
||||
album_name: str = ""
|
||||
public_upload_page_enabled: bool = False
|
||||
public_base_url: str = ""
|
||||
state_db: str = "./state.db"
|
||||
state_db: str = ""
|
||||
session_secret: str = ""
|
||||
log_level: str = "INFO"
|
||||
|
||||
@@ -48,7 +48,7 @@ def load_settings() -> Settings:
|
||||
maxc = int(os.getenv("MAX_CONCURRENT", "3"))
|
||||
except ValueError:
|
||||
maxc = 3
|
||||
state_db = os.getenv("STATE_DB", "./state.db")
|
||||
state_db = os.getenv("STATE_DB", "/data/state.db")
|
||||
session_secret = os.getenv("SESSION_SECRET") or secrets.token_hex(32)
|
||||
log_level = os.getenv("LOG_LEVEL", "INFO").upper()
|
||||
return Settings(
|
||||
|
||||
Reference in New Issue
Block a user