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

48 lines
752 B
Markdown
Raw Normal View History

2022-07-08 18:10:39 +08:00
### Structure
```json
{
2022-08-31 12:50:26 +08:00
"type": "http",
"tag": "http-in",
... // Listen Fields
"users": [
2022-07-08 18:10:39 +08:00
{
2022-08-31 12:50:26 +08:00
"username": "admin",
"password": "admin"
2022-07-08 18:10:39 +08:00
}
2022-08-31 12:50:26 +08:00
],
"tls": {},
"set_system_proxy": false
2022-07-08 18:10:39 +08:00
}
```
2022-08-31 12:50:26 +08:00
### Listen Fields
2023-12-14 22:23:52 +08:00
See [Listen Fields](/configuration/shared/listen/) for details.
2022-08-31 12:50:26 +08:00
### Fields
2022-08-23 23:15:56 +08:00
#### tls
TLS configuration, see [TLS](/configuration/shared/tls/#inbound).
2022-08-23 23:15:56 +08:00
#### users
HTTP users.
No authentication required if empty.
#### set_system_proxy
!!! quote ""
2022-08-23 23:15:56 +08:00
Only supported on Linux, Android, Windows, and macOS.
!!! warning ""
To work on Android and Apple platforms without privileges, use tun.platform.http_proxy instead.
2022-08-23 23:15:56 +08:00
Automatically set system proxy configuration when start and clean up when stop.