chore: update app, infra configs, assets
这个提交包含在:
10
README.md
10
README.md
@@ -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`
|
||||
证书建议使用 certbot(Let’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
|
||||
|
||||
在新工单中引用
屏蔽一个用户