Skip to content

Commit

Permalink
更新unix api
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Apr 17, 2024
1 parent 2a75e0c commit 51e22fa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/config/general.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ API listening address, you can change `127.0.0.1` to `0.0.0.0` to listen on all
external-controller: 127.0.0.1:9090
```

Unix socket API listening address

!!! warning ""
Accessing API endpoints via Unix socket does not verify secrets. If enabled, please ensure security measures are in place.

```{.yaml linenums="1"}
external-controller-unix: mihomo.sock
```

HTTPS-API listening address, requires configuring the tls section for certificate and private key configuration, external-controller must also be filled in.

```{.yaml linenums="1"}
Expand Down
9 changes: 9 additions & 0 deletions docs/config/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ API 监听地址,你可以将 127.0.0.1 修改为 0.0.0.0 来监听所有 IP
external-controller: 127.0.0.1:9090
```

Unix socket API 监听地址

!!! warning ""
从Unix socket访问api接口不会验证secret, 如果开启请自行保证安全问题

```{.yaml linenums="1"}
external-controller-unix: mihomo.sock
```

HTTPS-API 监听地址,需要配置 `tls` 部分证书和其私钥配置,使用 TLS 也必须填写 `external-controller`

```{.yaml linenums="1"}
Expand Down

0 comments on commit 51e22fa

Please sign in to comment.