sing-box/docs/configuration/outbound/http.md

59 lines
722 B
Markdown
Raw Normal View History

`http` outbound is a HTTP CONNECT proxy client.
2022-07-08 18:48:43 +08:00
### Structure
```json
{
2022-08-31 13:21:29 +08:00
"type": "http",
"tag": "http-out",
"server": "127.0.0.1",
"server_port": 1080,
"username": "sekai",
"password": "admin",
2023-04-14 21:18:28 +08:00
"path": "",
"headers": {},
2022-08-31 13:21:29 +08:00
"tls": {},
... // Dial Fields
2022-07-08 18:48:43 +08:00
}
```
2022-08-31 13:21:29 +08:00
### Fields
2022-07-08 18:48:43 +08:00
#### server
==Required==
2022-07-08 18:48:43 +08:00
The server address.
#### server_port
==Required==
2022-07-08 18:48:43 +08:00
The server port.
#### username
Basic authorization username.
#### password
Basic authorization password.
2023-04-14 21:18:28 +08:00
#### path
Path of HTTP request.
#### headers
Extra headers of HTTP request.
2022-07-27 12:03:07 +08:00
#### tls
TLS configuration, see [TLS](/configuration/shared/tls/#outbound).
2022-07-27 12:03:07 +08:00
2022-07-08 18:48:43 +08:00
### Dial Fields
2023-12-14 22:23:52 +08:00
See [Dial Fields](/configuration/shared/dial/) for details.