Download deploy/cloudflare-worker/.dev.vars.example from a3216/gcli2api: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/spaces/a3216/gcli2api/resolve/main/deploy/cloudflare-worker/.dev.vars.example
- Command line
-
hf download hf://spaces/a3216/gcli2api/deploy/cloudflare-worker/.dev.vars.example
-
curl -L -o .dev.vars.example https://huggingface.co/spaces/a3216/gcli2api/resolve/main/deploy/cloudflare-worker/.dev.vars.example
806 Bytes
| # 本地开发用的变量样例 —— 复制为 .dev.vars 后填写真实值。 | |
| # | |
| # cp .dev.vars.example .dev.vars | |
| # | |
| # ⚠️ .dev.vars 里放的是真实密钥,**永远不要提交**。 | |
| # `.dev.vars.example`(本文件)只放占位值,可以进版本库。 | |
| # | |
| # 线上环境不要用这个文件,改用: | |
| # npx wrangler secret put WB2A_API_KEY | |
| # | |
| # 格式:KEY="value",一行一个,不要加 export。 | |
| # 源站(一般不用改,改 Space 时才动) | |
| ORIGIN="https://a3216-gcli2api.hf.space" | |
| # 保活探测路径 | |
| HEALTH_PATH="/healthz" | |
| # 面板 / 网关的 Bearer 密钥。留空时 scheduled() 只做裸 ping,不发送鉴权请求。 | |
| WB2A_API_KEY="" | |
| # —— 可选的带鉴权签到(默认关闭)—— | |
| # CHECKIN_CRON="0 * * * *" | |
| # CHECKIN_PATH="/panel/api/keepalive" | |