mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
44 lines
634 B
Markdown
44 lines
634 B
Markdown
### Structure
|
|
|
|
```json
|
|
{
|
|
"type": "http",
|
|
"tag": "http-in",
|
|
|
|
... // Listen Fields
|
|
|
|
"users": [
|
|
{
|
|
"username": "admin",
|
|
"password": "admin"
|
|
}
|
|
],
|
|
"tls": {},
|
|
"set_system_proxy": false
|
|
}
|
|
```
|
|
|
|
### Listen Fields
|
|
|
|
See [Listen Fields](/configuration/shared/listen) for details.
|
|
|
|
### Fields
|
|
|
|
#### tls
|
|
|
|
TLS configuration, see [TLS](/configuration/shared/tls/#inbound).
|
|
|
|
#### users
|
|
|
|
HTTP users.
|
|
|
|
No authentication required if empty.
|
|
|
|
#### set_system_proxy
|
|
|
|
!!! error ""
|
|
|
|
Only supported on Linux, Android, Windows, and macOS.
|
|
|
|
Automatically set system proxy configuration when start and clean up when stop.
|