Skip to content

Commit

Permalink
[Doc] Update ForwardWebSocket from readme (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkRRb authored Mar 28, 2024
1 parent 24488d1 commit db45b79
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ docker run -td -p 8081:8081 -v /path-to-data:/app/data -e UID=$UID -e GID=$(id -
> 4. Press any key
> 5. Exit the container using `Ctrl + P` `Ctrl + Q`
>
> 2. If the host needs to access the Implementation (e.g., `Http`, `ForwardWebSocket`), please configure the Host of Implementation as `0.0.0.0` or `*`
> 2. If the host needs to access the Implementation (e.g., `Http`, `ForwardWebSocket`), please configure the Host of Implementation as `*`
> 3. If the implementation needs to access the host network (e.g., `HttpPost`, `ReverseWebSocket`), please configure the `Host` of implementation to be `host.docker.internal`.
## Migration from older versions
Expand All @@ -48,4 +48,4 @@ For example `/path-to-data`

Delete the `ConfigPath` configuration entry in `/path-to-data/appsettings.json`

Start the container according to [Getting Started](#getting-started)
Start the container according to [Getting Started](#getting-started)
4 changes: 2 additions & 2 deletions Docker_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
docker run -td -p 8081:8081 -v /path-to-data:/app/data -e UID=$UID -e GID=$(id -g) ghcr.io/konatadev/lagrange.onebot:edge
```

> [!IMPORTANT]重要
> [!IMPORTANT]
>
> - 首次运行时可能会提示 `Please Edit the appsettings.json to set configs and press any key to continue`,请选择以下一种方案执行:
>
Expand All @@ -38,7 +38,7 @@ docker run -td -p 8081:8081 -v /path-to-data:/app/data -e UID=$UID -e GID=$(id -
> 4. 按任意键
> 5. 使用 `Ctrl + P` `Ctrl + Q` 退出容器
>
> - 如果需要宿主需要访问实现(例如:`Http``ForwardWebSocket`),请将实现的 `Host` 配置为 `0.0.0.0``*`
> - 如果需要宿主需要访问实现(例如:`Http``ForwardWebSocket`),请将实现的 `Host` 配置为 `*`
> - 如果实现需要访问宿主网络(例如:`HttpPost``ReverseWebSocket`),请将实现的 `Host` 配置为 `host.docker.internal`
## 从旧版本迁移
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Please use Lagrange.Core responsibly and in accordance with the law.
},
{
"Type": "ForwardWebSocket",
"Host": "127.0.0.1",
"Host": "*",
"Port": 8081,
"HeartBeatInterval": 5000,
"AccessToken": ""
Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Please use Lagrange.Core responsibly and in accordance with the law.
},
{
"Type": "ForwardWebSocket",
"Host": "127.0.0.1",
"Host": "*",
"Port": 8081,
"HeartBeatInterval": 5000,
"AccessToken": ""
Expand Down

0 comments on commit db45b79

Please sign in to comment.