2022-08-24 13:02:28 +00:00
|
|
|
`http` 出站是一个 HTTP CONNECT 代理客户端
|
|
|
|
|
|
|
|
### 结构
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 05:21:29 +00:00
|
|
|
"type": "http",
|
|
|
|
"tag": "http-out",
|
|
|
|
|
|
|
|
"server": "127.0.0.1",
|
|
|
|
"server_port": 1080,
|
|
|
|
"username": "sekai",
|
|
|
|
"password": "admin",
|
2023-04-14 13:18:28 +00:00
|
|
|
"path": "",
|
|
|
|
"headers": {},
|
2022-08-31 05:21:29 +00:00
|
|
|
"tls": {},
|
|
|
|
|
|
|
|
... // 拨号字段
|
2022-08-24 13:02:28 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 05:21:29 +00:00
|
|
|
### 字段
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### server
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
服务器地址。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### server_port
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
服务器端口。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### username
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
Basic 认证用户名。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### password
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
Basic 认证密码。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
2023-04-14 13:18:28 +00:00
|
|
|
#### path
|
|
|
|
|
|
|
|
HTTP 请求路径。
|
|
|
|
|
|
|
|
#### headers
|
|
|
|
|
|
|
|
HTTP 请求的额外标头。
|
|
|
|
|
2022-08-24 13:02:28 +00:00
|
|
|
#### tls
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
### 拨号字段
|
|
|
|
|
2022-08-31 05:21:29 +00:00
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|