update doc/tunnel.md

pull/2562/merge
hengyunabc 2 years ago
parent 0bf9fc5028
commit 275a54c0f1

@ -106,9 +106,11 @@ Tunnel server 会以`_`做分隔符,提取出`appName`,方便按应用进行
## Tunnel Server 的管理页面
::: tip
需要在 spring boot 的`application.properties`里配置 `arthas.enable-detail-pages=true`
需要在 tunnel-server 的`application.properties`里配置 `arthas.enable-detail-pages=true`,也可以用命令行参数指定: `java -Darthas.enable-detail-pages=true -jar arthas-tunnel-server.jar`
**注意,开放管理页面有风险!管理页面没有安全拦截功能,务必自行增加安全措施。**
支持的配置项: [tunnel-server application.properties](https://github.com/alibaba/arthas/blob/master/tunnel-server/src/main/resources/application.properties)
**注意,开放管理页面有风险!管理页面没有安全拦截功能,务必自行增加安全措施,不要开放到公网。**
:::
在本地启动 tunnel-server然后使用`as.sh` attach并且指定应用名`--app-name test`

@ -102,9 +102,11 @@ Alternatively, you can configure `appName` in `arthas.properties` in the unzippe
## Tunnel Server Management Page
::: tip
Need to configure `arthas.enable-detail-pages=true` in `application.properties` of spring boot
You need to configure `arthas.enable-detail-pages=true` in `application.properties` of tunnel-server, or you can specify it with command line parameters: `java -Darthas.enable-detail-pages=true -jar arthas-tunnel-server.jar`
**Attention, opening admin pages is risky! There is no security blocking function on the management page, you must add security measures by yourself.**
Supported configuration: [tunnel-server application.properties](https://github.com/alibaba/arthas/blob/master/tunnel-server/src/main/resources/application.properties)
**Attention, opening the management page is risky! The management page is not authenticated, so you must add security measures yourself, and do not open it to the public network. **
:::
Start the tunnel-server locally, then use `as.sh` attach, and specify the application name `--app-name test`:

Loading…
Cancel
Save