Named correctly, and fixed to work with Le Potato
This commit is contained in:
12
server.py
12
server.py
@@ -14,7 +14,7 @@ from config import AppConfig
|
||||
from state import MessageState
|
||||
|
||||
DASHBOARD_DIR = Path(__file__).parent / "dashboard"
|
||||
SESSION_COOKIE = "sahsa_session"
|
||||
SESSION_COOKIE = "kh_session"
|
||||
|
||||
|
||||
# ── Session store ─────────────────────────────────────────────────────────────
|
||||
@@ -116,12 +116,12 @@ def _login_page(error: str = "") -> str:
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Sahsa Clock — Sign In</title>
|
||||
<title>KH Clock — Sign In</title>
|
||||
<style>{_PAGE_STYLE}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<h1>Sahsa Clock</h1>
|
||||
<h1>KH Clock</h1>
|
||||
<p class="subtitle">Sign in to access the dashboard.</p>
|
||||
{err}
|
||||
<form method="post" action="/login">
|
||||
@@ -141,7 +141,7 @@ def _setup_page(error: str = "") -> str:
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Sahsa Clock — First Run Setup</title>
|
||||
<title>KH Clock — First Run Setup</title>
|
||||
<style>{_PAGE_STYLE}</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -396,6 +396,6 @@ async def run_server(state: MessageState, config: AppConfig) -> None:
|
||||
await runner.setup()
|
||||
site = web.TCPSite(runner, "0.0.0.0", config.port)
|
||||
await site.start()
|
||||
print(f"[sahsa-clock] Dashboard: http://0.0.0.0:{config.port}")
|
||||
print(f"[sahsa-clock] API: http://0.0.0.0:{config.port}/api/")
|
||||
print(f"[KH-clock] Dashboard: http://0.0.0.0:{config.port}")
|
||||
print(f"[KH-clock] API: http://0.0.0.0:{config.port}/api/")
|
||||
await asyncio.Event().wait() # run forever
|
||||
|
||||
Reference in New Issue
Block a user