Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 743 Bytes

File metadata and controls

39 lines (23 loc) · 743 Bytes

r2 保存方法

部署

  • 创建R2存储桶

  • worker 部署到 cloudflare workers

  • 变量和机密 设置AUTH_TOKEN为访问密钥

  • 绑定 在worker中绑定R2储存桶,并将变量名称设置为SUB_BUCKET

修改配置文件

  • save-method配置为 r2

  • worker-url设置为你的 worker 地址

  • worker-token设置为你的 worker token

获取订阅

  • yaml格式的订阅
https://your-worker-url/storage?filename=all.yaml&token=AUTH_TOKEN
  • base64编码的订阅
https://your-worker-url/storage?filename=base64.txt&token=AUTH_TOKEN
  • 带规则的mihomo.yaml文件
https://your-worker-url/storage?filename=mihomo.yaml&token=AUTH_TOKEN