# inbounds

remark: OfficialVPN
protocol: vless
tag: inbound-443
settings:
  {
    "clients": [
      {
        "id": "cc115667-c238-485f-8842-41c1f35c3bcc",
        "flow": "",
        "email": "tncva4n2",
        "limitIp": 0,
        "totalGB": 0,
        "expiryTime": 0,
        "enable": true,
        "tgId": "",
        "subId": "r4jh5d5iuxb1spgg",
        "reset": 0
      }
    ],
    "decryption": "none",
    "fallbacks": []
  }

stream_settings:
  {
    "network": "tcp",
    "security": "reality",
    "externalProxy": [],
    "realitySettings": {
      "show": false,
      "xver": 0,
      "dest": "yahoo.com:443",
      "serverNames": [
        "yahoo.com",
        "www.yahoo.com"
      ],
      "privateKey": "iGVjV97sDPvtSZjY1dK-vC6UXhNKn1EJ3regrLbc52Y",
      "minClient": "",
      "maxClient": "",
      "maxTimediff": 0,
      "shortIds": [
        "db49e7cd"
      ],
      "settings": {
        "publicKey": "CVteSe9JP9WEooPDm2dtjlYKmVdsQ72_E2zvfhMhBWI",
        "fingerprint": "chrome",
        "serverName": "",
        "spiderX": "/"
      }
    },
    "tcpSettings": {
      "acceptProxyProtocol": false,
      "header": {
        "type": "none"
      }
    }
  }

sniffing:
  {
    "enabled": true,
    "destOverride": [
      "http",
      "tls",
      "quic",
      "fakedns"
    ],
    "metadataOnly": false,
    "routeOnly": false
  }


# settings

key: xrayTemplateConfig
value:
  {
    "log": {
      "access": "./access.log",
      "dnsLog": false,
      "error": "./error.log",
      "loglevel": "warning"
    },
    "api": {
      "tag": "api",
      "services": [
        "HandlerService",
        "LoggerService",
        "StatsService"
      ]
    },
    "inbounds": [
      {
        "tag": "api",
        "listen": "127.0.0.1",
        "port": 62789,
        "protocol": "dokodemo-door",
        "settings": {
          "address": "127.0.0.1"
        }
      }
    ],
    "outbounds": [
      {
        "tag": "direct",
        "protocol": "freedom",
        "settings": {
          "domainStrategy": "UseIP"
        }
      },
      {
        "tag": "blocked",
        "protocol": "blackhole",
        "settings": {}
      }
    ],
    "policy": {
      "levels": {
        "0": {
          "statsUserDownlink": true,
          "statsUserUplink": true
        }
      },
      "system": {
        "statsInboundDownlink": true,
        "statsInboundUplink": true,
        "statsOutboundDownlink": true,
        "statsOutboundUplink": true
      }
    },
    "routing": {
      "domainStrategy": "AsIs",
      "rules": [
        {
          "type": "field",
          "inboundTag": [
            "api"
          ],
          "outboundTag": "api"
        },
        {
          "type": "field",
          "outboundTag": "blocked",
          "protocol": [
            "bittorrent"
          ]
        },
        {
          "type": "field",
          "outboundTag": "direct",
          "ip": [
            "geoip:ru"
          ]
        },
        {
          "type": "field",
          "outboundTag": "direct",
          "domain": [
            "geosite:category-gov-ru",
            "regexp:.*\\.ru$"
          ]
        }
      ]
    },
    "stats": {}
  }


