2022-08-24 18:43:39 +08:00
|
|
|
### 结构
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 12:50:26 +08:00
|
|
|
"type": "http",
|
|
|
|
"tag": "http-in",
|
|
|
|
|
|
|
|
... // 监听字段
|
|
|
|
|
|
|
|
"users": [
|
2022-08-24 18:43:39 +08:00
|
|
|
{
|
2022-08-31 12:50:26 +08:00
|
|
|
"username": "admin",
|
|
|
|
"password": "admin"
|
2022-08-24 18:43:39 +08:00
|
|
|
}
|
2022-08-31 12:50:26 +08:00
|
|
|
],
|
|
|
|
"tls": {},
|
|
|
|
"set_system_proxy": false
|
2022-08-24 18:43:39 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
### 监听字段
|
|
|
|
|
|
|
|
参阅 [监听字段](/zh/configuration/shared/listen/)。
|
|
|
|
|
|
|
|
### 字段
|
2022-08-24 18:43:39 +08:00
|
|
|
|
|
|
|
#### tls
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#inbound)。
|
2022-08-24 18:43:39 +08:00
|
|
|
|
|
|
|
#### users
|
|
|
|
|
|
|
|
HTTP 用户
|
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
如果为空则不需要验证。
|
2022-08-24 18:43:39 +08:00
|
|
|
|
|
|
|
#### set_system_proxy
|
|
|
|
|
2023-11-09 17:04:08 +08:00
|
|
|
!!! quote ""
|
2022-08-24 18:43:39 +08:00
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
仅支持 Linux、Android、Windows 和 macOS。
|
2022-08-24 18:43:39 +08:00
|
|
|
|
2023-03-23 21:23:20 +08:00
|
|
|
!!! warning ""
|
|
|
|
|
|
|
|
要在无特权的 Android 和 iOS 上工作,请改用 tun.platform.http_proxy。
|
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
启动时自动设置系统代理,停止时自动清理。
|