mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-10-21 03:52:22 +00:00
fix: default compose WEBHOOK to false and leave RUST_LOG unset
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ BILIBILI_COOKIE=
|
|||||||
# Admin chat IDs, comma-separated: start/stop notices, admin-only commands.
|
# Admin chat IDs, comma-separated: start/stop notices, admin-only commands.
|
||||||
BOT_ADMIN=
|
BOT_ADMIN=
|
||||||
# Log level. Leave the line commented out for the default
|
# 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
|
# RUST_LOG=info,xmedia_bot=debug,x_media=debug
|
||||||
# Edit-before-forward record TTL (seconds).
|
# Edit-before-forward record TTL (seconds).
|
||||||
EDIT_MESSAGE_TTL_SECONDS=86400
|
EDIT_MESSAGE_TTL_SECONDS=86400
|
||||||
|
|||||||
+3
-3
@@ -65,12 +65,12 @@ services:
|
|||||||
WEBHOOK_SECRET_TOKEN: '${WEBHOOK_SECRET_TOKEN:-}'
|
WEBHOOK_SECRET_TOKEN: '${WEBHOOK_SECRET_TOKEN:-}'
|
||||||
# Defaults, listed so they are discoverable; override in .env when needed.
|
# Defaults, listed so they are discoverable; override in .env when needed.
|
||||||
LOCAL_USER_ID: '${LOCAL_USER_ID:-9001}'
|
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}'
|
EDIT_MESSAGE_TTL_SECONDS: '${EDIT_MESSAGE_TTL_SECONDS:-86400}'
|
||||||
LINK_CACHE_TTL_SECONDS: '${LINK_CACHE_TTL_SECONDS:-604800}'
|
LINK_CACHE_TTL_SECONDS: '${LINK_CACHE_TTL_SECONDS:-604800}'
|
||||||
CAPTION_QUOTE_TEXT_CHARS: '${CAPTION_QUOTE_TEXT_CHARS:-200}'
|
CAPTION_QUOTE_TEXT_CHARS: '${CAPTION_QUOTE_TEXT_CHARS:-200}'
|
||||||
VIRTUAL_PORT: '${VIRTUAL_PORT:-8443}'
|
VIRTUAL_PORT: '${VIRTUAL_PORT:-8443}'
|
||||||
WEBHOOK: '${WEBHOOK:-true}'
|
WEBHOOK: '${WEBHOOK:-false}'
|
||||||
WEBHOOK_LISTEN: '${WEBHOOK_LISTEN:-0.0.0.0}'
|
WEBHOOK_LISTEN: '${WEBHOOK_LISTEN:-0.0.0.0}'
|
||||||
WEBHOOK_PORT: '${WEBHOOK_PORT:-8443}'
|
WEBHOOK_PORT: '${WEBHOOK_PORT:-8443}'
|
||||||
# For a certificate on a bare IP: uncomment and set ACME_HOST in .env.
|
# 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,
|
# reported unhealthy. nginx-proxy shows 502s while webhook mode is down,
|
||||||
# so surface that to the orchestrator.
|
# so surface that to the orchestrator.
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user