{
  "log": {
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "tag": "tunnel-edge",
      "port": 3080,
      "listen": "0.0.0.0",
      "protocol": "dokodemo-door",
      "settings": {
        "address": "127.0.0.1",
        "port": 8907,
        "network": "tcp",
        "followRedirect": false
      },
      "sniffing": {
        "enabled": false
      }
    }
  ],
  "outbounds": [
    {
      "tag": "vless-tunnel",
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "{{BACKEND_HOST}}",
            "port": {{BACKEND_PORT}},
            "users": [
              {
                "id": "{{REALITY_UUID}}",
                "encryption": "{{REALITY_ENCRYPTION}}",
                "flow": ""
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "xhttp",
        "xhttpSettings": {
          "path": "/xh",
          "mode": "packet-up",
          "xmux": {
            "maxConcurrency": 1,
            "cMaxReuseTimes": 64,
            "cMaxLifetimeMs": 15000
          },
          "extra": {
            "xPaddingBytes": "100-1000"
          }
        },
        "security": "reality",
        "realitySettings": {
          "serverName": "{{REALITY_SERVER_NAME}}",
          "publicKey": "{{REALITY_PUBLIC_KEY}}",
          "shortId": "{{REALITY_SHORT_ID}}",
          "fingerprint": "randomized"
        }
      }
    }
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "inboundTag": ["tunnel-edge"],
        "outboundTag": "vless-tunnel"
      }
    ]
  }
}
