chore: update app, infra configs, assets

这个提交包含在:
cryptocommuniums-afk
2026-02-02 10:05:00 +08:00
父节点 4c46b22c85
当前提交 810d0420d6
修改 18 个文件,包含 1374 行新增30 行删除

查看文件

@@ -56,6 +56,10 @@ Headers: `x-merchant-id`, `x-api-key`
```json
{ "orderId": "ORD123", "txHash": "0x...", "network": "evm:ethereum" }
```
Bitcoin 示例:
```json
{ "orderId": "ORD123", "txHash": "btc_txid", "network": "btc:mainnet" }
```
### 4) Webhook 聚合入口
`POST /payments/webhook`
@@ -70,12 +74,16 @@ Headers: `x-merchant-id`, `x-api-key`
证书建议使用 certbotLet’s Encrypt
```bash
apt-get update && apt-get install -y certbot python3-certbot-nginx
certbot --nginx -d capay.hao.work -d pay.capay.hao.work -d btc.capay.hao.work -d doge.capay.hao.work
certbot --nginx -d capay.hao.work -d pay.capay.hao.work -d btc.capay.hao.work
```
## x402 Facilitator
配置文件在:`x402/facilitator/`,已绑定 `pay.capay.hao.work`,并写入 Alchemy ETH RPC。
## Bitcoin 节点Alchemy
默认使用 `ALCHEMY_BTC_API_KEY(S)``BTC_RPC_URL(S)` 来访问 Bitcoin 主网 RPC。
`/payments/track``network` 统一使用 `btc:mainnet`
## 生产建议
-`.env` 中的密钥替换为强随机值
- 生产环境建议使用数据库PostgreSQL/MySQL替换本地 JSON