From 4e1710e979de163650703de647a85a918fa3c062 Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 11 Jun 2026 02:37:39 +0000 Subject: [PATCH] Fix missing [web] section header in mcbot.conf.example The [web] section header was dropped (a merge casualty of the [env] and repeat-tracking changes), so every web setting (enabled/host/port/ api_tokens/admin_*/session_secret/cors_origins/tls_*) was nested under [env]. A user copying the example to mcbot.conf would get the web server silently disabled (load_config looks for has_section("web")) and those keys pushed into the process environment as junk env vars (ENABLED, HOST, PORT, ...). Restore the header so the web keys live under [web] again. Co-Authored-By: Claude Opus 4.8 (1M context) --- mcbot.conf.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mcbot.conf.example b/mcbot.conf.example index 4612379..a1853f0 100644 --- a/mcbot.conf.example +++ b/mcbot.conf.example @@ -101,6 +101,8 @@ owner_pubkeys = 0000000000000000000000000000000000000000000000000000000000000000 [env] ;PWS_API_KEY = your-weather-com-api-key ;PWS_STATION_ID = KXXYYYY1234 + +[web] ; Optional web admin UI + REST/WebSocket API, run in-process. Disabled by ; default. When enabled it has the bot's full authority (send messages, ; edit users/groups), so secure it: keep this file out of git, use strong