aboutsummaryrefslogtreecommitdiff
path: root/config.example.yaml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-20 16:34:01 -0800
committerFuwn <[email protected]>2026-01-20 16:34:01 -0800
commitd21e767ec97826beb878a501936bc03f1cb5d33b (patch)
tree7ee6f279222991ee42f0705a544ac6d68a40edf4 /config.example.yaml
parentfeat: Add API access control (public/private/authenticated) (diff)
downloadkaze-d21e767ec97826beb878a501936bc03f1cb5d33b.tar.xz
kaze-d21e767ec97826beb878a501936bc03f1cb5d33b.zip
feat: Add API-based refresh mode for smoother updates
Add display.refresh_mode option: - 'page' (default): Full page refresh via meta refresh - 'api': Fetch /api/status and update DOM without reload Also add display.refresh_interval (default: 30s, min: 5s) API mode updates: status indicators, response times, uptimes, errors, overall status banner, and page title counts. History bars remain static until full page refresh.
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.example.yaml b/config.example.yaml
index 228aecd..89da0d7 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -67,6 +67,14 @@ display:
# UI scale factor (0.5 to 2.0, default: 1.0)
# Adjusts the overall size of text and spacing
# scale: 1.0
+
+ # Refresh mode:
+ # "page" - Full page refresh (default)
+ # "api" - Fetch updates via API without page reload (smoother UX)
+ # refresh_mode: page
+
+ # Refresh interval in seconds (default: 30, minimum: 5)
+ # refresh_interval: 30
# Monitor groups
groups: