VXVX Docs

Configuration

vx-core server configuration reference (ServerConfig)

vx-core reads a single server configuration file. The root message is ServerConfig in protos/proto/vx/server.proto.

Configuration format

The configuration is a protobuf message that can be serialized as:

  • Binary protobuf — Compact; used in some internal paths
  • ProtoJSON — Human-readable JSON; suitable for manual editing

Typed settings for protocols and transports use google.protobuf.Any. In JSON, set @type to the message type URL:

{
  "@type": "type.googleapis.com/vx.proxy.trojan.TrojanServerConfig",
  "users": [{ "secret": "your-password" }]
}

JSON field names use camelCase (e.g. matchAll, outboundTag, multiInbounds).

ServerConfig overview

inbounds

Inbounds

multiInbounds

Multi-inbounds

outbounds

Outbounds

router

Routing configuration

dns

DNS configuration

geo

Sets

policy

Timeout policy

log

Logging settings

users

Users

dispatcher

Dispatcher

dialerFactory

Outbound factory

Minimal server example:

{
  "inbounds": [
    {
      "tag": "trojan",
      "ports": [443],
      "protocol": {
        "@type": "type.googleapis.com/vx.proxy.trojan.TrojanServerConfig"
      }
    }
  ],
  "router": {
    "rules": [{ "matchAll": true, "outboundTag": "direct" }]
  },
  "outbounds": [
    {
      "tag": "direct",
      "protocol": {
        "@type": "type.googleapis.com/vx.proxy.freedom.FreedomConfig"
      }
    }
  ]
}

Sections

CLI

vx run --config config.json
`--config`
default config.json

Path to the configuration file

When installed via the install script, the default path is /usr/local/etc/vx/config.json.

Proto source files

Root
protos/proto/vx/server.proto
Inbounds
protos/proto/vx/inbound/inbound.proto
Outbounds
protos/proto/vx/outbound/outbound.proto
Router
protos/proto/vx/router/router.proto
DNS
protos/proto/vx/dns/dns.proto
Geo
protos/proto/vx/geo/geo.proto
Policy
protos/proto/vx/policy.proto
Log
protos/proto/vx/log/logger.proto
Users
protos/proto/vx/user/user.proto
Dispatcher
protos/proto/vx/dispatcher/dispatcher.proto
Dialer factory
protos/proto/vx/dialerfactory/dialerfactory.proto
Proxy protocols

protos/proto/vx/proxy/*/Documentation

Transport

protos/proto/vx/transport/Documentation

Security (TLS/REALITY)

protos/proto/vx/transport/security/Documentation

Comments