diff --git a/webui.py b/webui.py index 5f975f7..c1c9265 100644 --- a/webui.py +++ b/webui.py @@ -495,16 +495,8 @@ async def dashboard(): pull_html = _sync_entry_html(s["last_pull"]) push_html = _sync_entry_html(s["last_push"]) - def _mask(val: str) -> str: - if not val: - return 'NOT SET' - if len(val) <= 10: - return "***" - return f'{val[:6]}***{val[-4:]}' - outline_url = os.environ.get("OUTLINE_URL", "") - outline_tok = _mask(os.environ.get("OUTLINE_TOKEN", "")) - ts_authkey = _mask(os.environ.get("TS_AUTHKEY", "")) + outline_tok = os.environ.get("OUTLINE_TOKEN", "") or 'NOT SET' body = f"""
@@ -528,8 +520,7 @@ async def dashboard(): - - +
KeyValue
OUTLINE_URL{outline_url or 'NOT SET'}
OUTLINE_TOKEN{outline_tok}
TS_AUTHKEY{ts_authkey}
OUTLINE_TOKEN{outline_tok}
APP_VERSION{APP_VERSION}
"""