1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

doc: scf.

This commit is contained in:
wdvxdr 2021-08-01 21:39:39 +08:00
parent 58d96004a3
commit cf307f455e
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6

View File

@ -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
````
````
## 云函数部署
使用CustomRuntime进行部署 bootstrap 文件在 `scripts/bootstrap` 中已给出。
在部署前,请在本地完成登录,并将 `config.yml` `device.json` `bootstrap``go-cqhttp`
一起打包。
在触发器中创建一个API网关触发器并启用继承响应 创建完成后即可通过api网关访问go-cqhttp(建议配置 AccessToken)。
> scripts/bootstrap 中使用的工作路径为 /tmp, 这个目录最大能容下500M文件, 如需长期使用,
> 请挂载文件存储(CFS).