# settings

key: xrayTemplateConfig
value:
  {
    "log": {
      "access": "none",
      "dnsLog": false,
      "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": {}
      },
      {
        "tag": "blocked",
        "protocol": "blackhole",
        "settings": {}
      }
    ],
    "policy": {
      "levels": {
        "0": {
          "statsUserDownlink": true,
          "statsUserUplink": true
        }
      },
      "system": {
        "statsInboundDownlink": true,
        "statsInboundUplink": true,
        "statsOutboundDownlink": true,
        "statsOutboundUplink": true
      }
    },
    "routing": {
      "domainStrategy": "IPIfNonMatch",
      "rules": [
        {
          "type": "field",
          "inboundTag": [
            "api"
          ],
          "outboundTag": "api"
        },
        {
          "type": "field",
          "outboundTag": "blocked",
          "ip": [
            "geoip:private"
          ]
        },
        {
          "type": "field",
          "outboundTag": "blocked",
          "protocol": [
            "bittorrent"
          ]
        },
        {
          "domain": [
            "full:reverse.xui"
          ],
          "outboundTag": "reverse-0",
          "inboundTag": [
            "inbound-1207"
          ],
          "type": "field"
        },
        {
          "outboundTag": "reverse-0",
          "inboundTag": [
            "inbound-2083",
            "inbound-2086",
            "inbound-2087"
          ],
          "type": "field"
        }
      ]
    },
    "stats": {},
    "reverse": {
      "portals": [
        {
          "tag": "reverse-0",
          "domain": "reverse.xui"
        }
      ]
    }
  }


