VXVX Docs

用户

UserConfig — 认证账户

此message在 ServerConfig.usersUserConfig[])中用到。也在入站users 中用到。

模式定义:protos/proto/vx/user/user.proto

UserConfig

id
string

用户标识(用于路由 usernames

userLevel
uint32

PolicyConfig userPolicyMap 的策略级别

secret
string

任意长度的密码

示例

{
  "users": [
    {
      "id": "alice",
      "userLevel": 0,
      "secret": "00000000-0000-0000-0000-000000000001"
    }
  ],
  "inbounds": [
    {
      "tag": "vless",
      "ports": [443],
      "users": [
        {
          "id": "alice",
          "userLevel": 0,
          "secret": "00000000-0000-0000-0000-000000000001"
        }
      ],
      "protocol": {
        "@type": "type.googleapis.com/vx.proxy.vless.VlessServerConfig"
      }
    }
  ]
}

入站级 users 会加入该入站上所有代理处理器。全局 users 在加入到所有入站里的所有代理处理器。

相关

  • 路由 — 匹配 usernames
  • 策略userLevel → 缓冲区与限制

评论