| 另外的config file 複製代碼pi@raspberry:/etc/v2ray $ cat config.json
// General settings for config.json
// vmess port: port_number
// shadowsocks port: port_number
//
// Family Settings
// vmess port: port_number1, level = 1
// Friend Settings
// vmess port: port_number2, level = 0
{
  "log" : {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbound": {
    "port": port_number,
    "protocol": "vmess",
    "settings": {
    "clients": [
        {
          "id": “UUID", 
          "level": 1,
          "alterId": 64
        }
      ]
    }
  },
  "outbound": {
    "protocol": "freedom",
    "settings": {}
  },
  "inboundDetour": [
        {
          "port": port_number,
          "protocol": "vmess",
          "settings": {
            "clients": [
              {
                "mail": “name@v2ray.com",
                "id": “UUID",
                "level": 1, 
                "alterId": 64
              }
            ]
          }
        },
        {
          "port": port_number,
          "protocol": "vmess",
          "settings": {
            "clients": [
              {
                "mail": “name@v2ray.com",
                "id": “UUID”,
                "level": 1,
                "alterId": 64
              }
            ]
          }
        },
        {
          "port": port_number,
          "protocol": "vmess",
          "settings": {
            "clients": [
              {
                "mail": “name@v2ray.com",
                "id": “UUID",
                "level": 0,
                "alterId": 64
              },
              {
                "mail": “name@v2ray.com",
                "id": “UUID",
                "level": 0,
                "alterId": 64
              },
              {
                "mail": “name@v2ray.com",
                "id": “UUID”,
                "level": 0,
                "alterId": 64
              }
            ]
          }
        },
        {
          "protocol": "shadowsocks",
          "port": port_number,
          "settings": {
              "method": "chacha20-ietf-poly1305",
              "password": “password",
              "level": 1        
          }
        },
        {
          "protocol": "shadowsocks",
          "port": port_number,
          "settings": {
              "method": "chacha20-ietf-poly1305",
              "password": “passowrd",
              "level": 1
          }
        },
        {
          "protocol": "shadowsocks",
          "port": port_number,
          "settings": {
              "method": "aes-256-gcm",
              "password": “passowrd",
              "level": 1
          }
        }
  ],
  "outboundDetour": [
      {
          "protocol": "freedom",
          "settings": {}
      }
  ]
}
pi@raspberry:/etc/v2ray $
 |