diff --git a/webui.py b/webui.py
index caf30fe..5f975f7 100644
--- a/webui.py
+++ b/webui.py
@@ -495,6 +495,17 @@ 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", ""))
+
body = f"""
| Key | Value |
|---|---|
| OUTLINE_URL | {outline_url or 'NOT SET'} |
| OUTLINE_TOKEN | {outline_tok} |
| TS_AUTHKEY | {ts_authkey} |
| APP_VERSION | {APP_VERSION} |