Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
donknap committed Jun 4, 2024
1 parent 47ba5eb commit 8fcf659
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/zh-cn/install/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ docker network create dpanel-local
```
docker run -it -d --name dpanel \
-p 80:80 -p 443:443 -p 8807:8080 --network dpanel-local \
-v /var/run/docker.sock:/var/run/docker.sock -v dpanel:/dpanel \
-v /var/run/docker.sock:/var/run/docker.sock \
donknap/dpanel:latest
```

Expand Down
24 changes: 23 additions & 1 deletion docs/zh-cn/manual/container-domain-dpanel.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
### 使用 DPanel 转发
### 使用 DPanel 转发

DPanel 提供了简单的域名绑定转发功能

> 使用前必须创建 dpanel-local mqxtk,并绑定 80 及 443 端口
#### 端口

配置目标容器的内部访问端口,一般为80端口。


#### 自定义配置

扩展站点的 vhost.conf 配置,例如一些重写规则。

#### 支持 Websocket

如果你的站点需要 ws 连接,必须开启此项


### 演示

<iframe src="//player.bilibili.com/player.html?isOutside=true&aid=112556983193480&bvid=BV1i6TSe5EsW&cid=500001571229201&p=1" scrolling="no" border="0" height="600" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>
2 changes: 1 addition & 1 deletion docs/zh-cn/manual/container-domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ location / {

```
location / {
proxy_pass http://容器内网ip或是host:容器内的端口;
proxy_pass http://容器的内网host:容器内的端口;
}
```

Expand Down

0 comments on commit 8fcf659

Please sign in to comment.