From 2bb061cf282505e065defe5a95e557a4a52467ee Mon Sep 17 00:00:00 2001 From: anonsaber Date: Sat, 10 Oct 2026 19:30:44 +0800 Subject: [PATCH] docs: use --app-domain CLI flag style in cron-drain example --- README.md | 8 ++++---- README.zh-CN.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b2d46f1..eef2c64 100644 --- a/README.md +++ b/README.md @@ -256,10 +256,10 @@ Push delivery can be delayed or missed; an external scheduler is the safety net. that can reach your origin, every 5–10 minutes: ```sh -MW_APP_DOMAIN=mw.example.com \ -MW_WORKER_TOKEN= \ -MW_RECONCILE_TOKEN= \ -scripts/cron-drain.sh --once +scripts/cron-drain.sh --once \ + --app-domain mw.example.com \ + --worker-token \ + --reconcile-token ``` The script drains the queue (`/worker`) and rescans for missed pushes (`/reconcile`); both return diff --git a/README.zh-CN.md b/README.zh-CN.md index a11d9da..7644254 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -175,10 +175,10 @@ curl -s "https://api.telegram.org/bot/getWebhookInfo" Push 投递可能延迟或丢失;外部调度器是兜底。在任意一台能访问你源站的机器上,每 5–10 分钟跑一次: ```sh -MW_APP_DOMAIN=mw.example.com \ -MW_WORKER_TOKEN= \ -MW_RECONCILE_TOKEN= \ -scripts/cron-drain.sh --once +scripts/cron-drain.sh --once \ + --app-domain mw.example.com \ + --worker-token \ + --reconcile-token ``` 脚本会排空队列(`/worker`)并重扫漏掉的 push(`/reconcile`);两者成功都回答 204 空 body。`MW_RECONCILE_TOKEN` 是可选的——省略时跳过 reconcile 步骤,只排空队列。如果你把负载均衡器放在前面,`/worker` 必须直达后端源站——原因见 §6.3。