{
  "log": {
    "loglevel": "warning",
    "access": "/opt/xray-access.log",
    "error": "/opt/xray-error.log",
    "dnsLog": false
  },


//入口
  "inbounds": [

//VLESS-TCP-XTLS-Vision-REALITY
    {
            "listen": "0.0.0.0",
            "port": 12345,
            "protocol": "vless",
            "settings": {
                "clients": [
                    {
                        "id": "b13cd17a-32bc-4d98-bc80-29557c7df2ab",
                        "flow": "xtls-rprx-vision"
                    }
                ],
                "decryption": "none"
            },
            "streamSettings": {
                "network": "tcp",
                "security": "reality",
                "realitySettings": {
                    "show": false,
                    "dest": "127.0.0.1:443",
                    "xver": 0,
                    "serverNames": ["www.icloud.com"],
                    "privateKey": "0AK_oo8tzDUV0e1gaTPP64aZxF64jfVQ2W3958IL9wE", //服务端执行 "xray x25519" 即可生成
                    "shortIds": ["609055ec48cbb599"]
                }
            },
            "sniffing": {
                "enabled": true,
                "destOverride": ["http", "tls", "quic"]
            }
    }

  ],

//出口节点
  "outbounds": [
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {}
    }
  ],

//出口规则
  "routing": {
    "domainStrategy": "AsIs", //AsIs|IPIfNonMatch|IPOnDemand
    "rules": [
      //禁止80端口UDP
	  {
        "type": "field",
        "port": "80",
        "network": "udp",
        "outboundTag": "block"
      }
    ]
  }
}