From 8f2eee1a384a1a927c7557f9a1a7c20c48013a49 Mon Sep 17 00:00:00 2001 From: zqlit Date: Tue, 6 Oct 2026 17:06:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(ssl):=20=E6=B3=A8=E9=87=8A=E6=8E=89=20[limi?= =?UTF-8?q?ts]=20cpu=5Fms=20=E2=80=94=E2=80=94=20=E5=85=8D=E8=B4=B9?= =?UTF-8?q?=E7=89=88=E4=BC=9A=E7=9B=B4=E6=8E=A5=E6=8B=92=E7=BB=9D=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2026-10-06 实测 wrangler deploy 报错: X [ERROR] A request to the Cloudflare API (.../versions) failed. CPU limits are not supported for the Free plan. [code: 100328] 注意是「整个部署失败」而非「忽略该字段」,所以 Free plan 下必须注释。 同时记下影响:免费版 CPU 硬顶 10ms,ACME 签发(ECDSA 签名 + 手写 DER CSR) 跑不起来 —— 签发/续期链路需要 Workers Paid;探针/自检/查询不受影响。 升级 Paid 后放开注释即可(cron 默认 30s,Paid 可到 5min)。 --- blog-admin/wrangler.toml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/blog-admin/wrangler.toml b/blog-admin/wrangler.toml index 6b414137..58892a4a 100644 --- a/blog-admin/wrangler.toml +++ b/blog-admin/wrangler.toml @@ -140,14 +140,23 @@ custom_domain = true crons = ["17 3 * * *", "0 * * * *", "10 4 * * *"] # --------------------------------------------------------------------------- -# 资源上限 -# ★ CPU 时间:证书签发要跑多次加密(ECDSA 签名 / SHA-256)与 DER 编码, -# 虽然总耗时主要是等在网络上(不算 CPU),但给足余量避免 1102 错误。 -# cron 的默认上限就是 30s;HTTP 请求默认也是 30s(付费版可提到 5 分钟)。 -# 免费版会忽略这个字段(免费版硬顶 10ms,签发功能在免费版上不可用)。 +# 资源上限 —— ★ 免费版不支持,必须注释掉,否则**部署直接被拒** +# +# 2026-10-06 实测:wrangler deploy 报 +# X [ERROR] A request to the Cloudflare API (.../workers/scripts/artalk-cf/versions) +# failed. CPU limits are not supported for the Free plan. [code: 100328] +# 注意:免费版不是「忽略」这个字段,而是**整个部署失败**, +# 所以只要账号还在 Free plan,这段就必须保持注释。 +# +# ★ 同时这也意味着:免费版硬顶 CPU 10ms,**证书签发功能跑不起来** +# (一次 ECDSA 签名 + 手写 DER 的 CSR 远不止 10ms)。 +# 换句话说:ACME 签发/续期这条链路需要 Workers Paid($5/月)。 +# 探针 / 环境自检 / 手动查询这些轻量功能在免费版完全可用。 +# +# 升级到 Paid 后,把下面两行放开即可(cron 默认 30s,Paid 可到 5min): +# [limits] +# cpu_ms = 60000 # --------------------------------------------------------------------------- -[limits] -cpu_ms = 60000 [observability] enabled = true