2023-12-01 13:24:18 +08:00
|
|
|
!!! quote ""
|
|
|
|
|
2023-12-03 14:53:22 +08:00
|
|
|
V2Ray API is not included by default, see [Installation](/installation/build-from-source/#build-tags).
|
|
|
|
|
|
|
|
### Structure
|
2023-12-01 13:24:18 +08:00
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"listen": "127.0.0.1:8080",
|
|
|
|
"stats": {
|
|
|
|
"enabled": true,
|
|
|
|
"inbounds": [
|
|
|
|
"socks-in"
|
|
|
|
],
|
|
|
|
"outbounds": [
|
|
|
|
"proxy",
|
|
|
|
"direct"
|
|
|
|
],
|
|
|
|
"users": [
|
|
|
|
"sekai"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Fields
|
|
|
|
|
|
|
|
#### listen
|
|
|
|
|
|
|
|
gRPC API listening address. V2Ray API will be disabled if empty.
|
|
|
|
|
|
|
|
#### stats
|
|
|
|
|
|
|
|
Traffic statistics service settings.
|
|
|
|
|
|
|
|
#### stats.enabled
|
|
|
|
|
|
|
|
Enable statistics service.
|
|
|
|
|
|
|
|
#### stats.inbounds
|
|
|
|
|
|
|
|
Inbound list to count traffic.
|
|
|
|
|
|
|
|
#### stats.outbounds
|
|
|
|
|
|
|
|
Outbound list to count traffic.
|
|
|
|
|
|
|
|
#### stats.users
|
|
|
|
|
|
|
|
User list to count traffic.
|