mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
doc: document new http/ws host config
This commit is contained in:
parent
5cf5bf7a27
commit
1d859dc373
@ -84,9 +84,8 @@ servers:
|
||||
# HTTP 通信设置
|
||||
- http:
|
||||
# 服务端监听地址
|
||||
host: 127.0.0.1
|
||||
# 服务端监听端口
|
||||
port: 5700
|
||||
# 如需指定监听ipv4, 可使用 `address: tcp4://0.0.0.0:5700` (ipv6同理)
|
||||
address: 0.0.0.0:5700
|
||||
# 反向HTTP超时时间, 单位秒
|
||||
# 最小值为5,小于5将会忽略本项设置
|
||||
timeout: 5
|
||||
@ -102,9 +101,8 @@ servers:
|
||||
# 正向WS设置
|
||||
- ws:
|
||||
# 正向WS服务器监听地址
|
||||
host: 127.0.0.1
|
||||
# 正向WS服务器监听端口
|
||||
port: 6700
|
||||
# 如需指定监听ipv4, 可使用 `address: tcp4://0.0.0.0:6700` (ipv6同理)
|
||||
address: 0.0.0.0:6700
|
||||
middlewares:
|
||||
<<: *default # 引用默认中间件
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user