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:
parent
58d96004a3
commit
cf307f455e
@ -119,6 +119,12 @@ servers:
|
|||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
# pprof服务器监听端口
|
# pprof服务器监听端口
|
||||||
port: 7700
|
port: 7700
|
||||||
|
|
||||||
|
# LambdaServer 配置
|
||||||
|
- lambda:
|
||||||
|
type: scf # 可用 scf,aws (aws未经过测试)
|
||||||
|
middlewares:
|
||||||
|
<<: *default # 引用默认中间件
|
||||||
|
|
||||||
# 可添加更多
|
# 可添加更多
|
||||||
#- ws-reverse:
|
#- ws-reverse:
|
||||||
@ -208,4 +214,15 @@ database: # 数据库相关设置
|
|||||||
````
|
````
|
||||||
1.1.1.1:53
|
1.1.1.1:53
|
||||||
1.1.2.2:8899
|
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).
|
Loading…
x
Reference in New Issue
Block a user