From 51f451d78f60f9eac6b0e1665b4b1be433ba9a96 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Wed, 14 Oct 2026 20:04:16 +0800 Subject: [PATCH] fix: default compose WEBHOOK to false and leave RUST_LOG unset --- .env.example | 2 +- docker-compose.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 5e23a0b..7cdce86 100644 --- a/.env.example +++ b/.env.example @@ -25,7 +25,7 @@ BILIBILI_COOKIE= # Admin chat IDs, comma-separated: start/stop notices, admin-only commands. BOT_ADMIN= # Log level. Leave the line commented out for the default -# (`info,hyper_util=warn,reqwest=warn`); do not set it to an empty value. +# (`info,hyper_util=warn,reqwest=warn`); an empty value behaves the same. # RUST_LOG=info,xmedia_bot=debug,x_media=debug # Edit-before-forward record TTL (seconds). EDIT_MESSAGE_TTL_SECONDS=86400 diff --git a/docker-compose.yml b/docker-compose.yml index 84683dd..678e558 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -65,12 +65,12 @@ services: WEBHOOK_SECRET_TOKEN: '${WEBHOOK_SECRET_TOKEN:-}' # Defaults, listed so they are discoverable; override in .env when needed. LOCAL_USER_ID: '${LOCAL_USER_ID:-9001}' - RUST_LOG: '${RUST_LOG:-info}' + RUST_LOG: '${RUST_LOG:-}' EDIT_MESSAGE_TTL_SECONDS: '${EDIT_MESSAGE_TTL_SECONDS:-86400}' LINK_CACHE_TTL_SECONDS: '${LINK_CACHE_TTL_SECONDS:-604800}' CAPTION_QUOTE_TEXT_CHARS: '${CAPTION_QUOTE_TEXT_CHARS:-200}' VIRTUAL_PORT: '${VIRTUAL_PORT:-8443}' - WEBHOOK: '${WEBHOOK:-true}' + WEBHOOK: '${WEBHOOK:-false}' WEBHOOK_LISTEN: '${WEBHOOK_LISTEN:-0.0.0.0}' WEBHOOK_PORT: '${WEBHOOK_PORT:-8443}' # For a certificate on a bare IP: uncomment and set ACME_HOST in .env. @@ -93,7 +93,7 @@ services: # reported unhealthy. nginx-proxy shows 502s while webhook mode is down, # so surface that to the orchestrator. healthcheck: - test: ["CMD-SHELL", "test '${WEBHOOK:-true}' != true || bash -c 'exec 3<>/dev/tcp/127.0.0.1/${WEBHOOK_PORT:-8443}'"] + test: ["CMD-SHELL", "test '${WEBHOOK:-false}' != true || bash -c 'exec 3<>/dev/tcp/127.0.0.1/${WEBHOOK_PORT:-8443}'"] interval: 30s timeout: 5s retries: 3