mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 19:47:08 +08:00
补充 Cloudflare Worker、R2 存储、微信 JS-SDK 签名与上传鉴权 增加自动部署 Skill 和配置引导文档 优化报告工具栏、微信卡片弹窗及窄屏响应式布局 补充 Worker 鉴权、卡片生成、过期清理与安全转义测试
27 lines
790 B
Markdown
27 lines
790 B
Markdown
# WechatExplorer share-card worker
|
|
|
|
Cloudflare Worker + private R2 service for temporary WeChat report cards.
|
|
|
|
This is an experimental, self-hosted feature. See the complete Chinese deployment guide:
|
|
|
|
- `../../docs/deployment/experimental-wechat-share-card.md`
|
|
|
|
Required encrypted secrets:
|
|
|
|
- `WECHAT_APP_ID`
|
|
- `WECHAT_APP_SECRET`
|
|
- `UPLOAD_TOKEN` (random 32+ character token also saved in WechatExplorer's secure settings)
|
|
|
|
Create the private bucket, set secrets, and deploy:
|
|
|
|
```bash
|
|
npx wrangler r2 bucket create wechatexplorer-share-reports
|
|
npx wrangler secret put WECHAT_APP_ID
|
|
npx wrangler secret put WECHAT_APP_SECRET
|
|
npx wrangler secret put UPLOAD_TOKEN
|
|
npx wrangler deploy
|
|
```
|
|
|
|
Keep the R2 public development URL disabled. All reads go through the Worker and expire with
|
|
the card.
|