diff --git a/docs/config.md b/docs/config.md index cf59705..f622a4b 100644 --- a/docs/config.md +++ b/docs/config.md @@ -119,6 +119,12 @@ servers: host: 127.0.0.1 # pprof服务器监听端口 port: 7700 + + # LambdaServer 配置 + - lambda: + type: scf # 可用 scf,aws (aws未经过测试) + middlewares: + <<: *default # 引用默认中间件 # 可添加更多 #- ws-reverse: @@ -208,4 +214,15 @@ database: # 数据库相关设置 ```` 1.1.1.1:53 1.1.2.2:8899 -```` \ No newline at end of file +```` + +## 云函数部署 + +使用CustomRuntime进行部署, bootstrap 文件在 `scripts/bootstrap` 中已给出。 +在部署前,请在本地完成登录,并将 `config.yml` , `device.json` ,`bootstrap` 和 `go-cqhttp` +一起打包。 + +在触发器中创建一个API网关触发器,并启用继承响应, 创建完成后即可通过api网关访问go-cqhttp(建议配置 AccessToken)。 + +> scripts/bootstrap 中使用的工作路径为 /tmp, 这个目录最大能容下500M文件, 如需长期使用, +> 请挂载文件存储(CFS). \ No newline at end of file