RU

JSON subscriptions

Full Xray and sing-box configurations.

Balancers

The config goes to the core as is: routing.balancers, observatory and burstObservatory, rules with balancerTag, your own DNS and routing all work as in Xray. The server label in the list stays the usual one: protocol, transport and security of the first outbound. Short connectivity check failures don't restart the tunnel: the balancer moves off a bad outbound by itself. Your policy and dns are kept; the app only adds the tunnel inbound and traffic counters.

Remnawave serves balancers only as JSON and puts a stub with a domainless address in link subscriptions. When nya sees such a stub it fetches the same subscription at /json and keeps the panel headers from the main response. To have the panel return JSON right away, add ^nya/ to the XRAY_JSON response rule (Remnawave → Subscription → Response rules).

The server may return one Xray config or an array of configs. Each item becomes a separate server.

JSON
[
  {
    "remarks": "🇳🇱 Netherlands",
    "outbounds": [
      {
        "tag": "proxy",
        "protocol": "vless",
        "settings": {
          "vnext": [{ "address": "1.2.3.4", "port": 443,
            "users": [{ "id": "uuid", "flow": "xtls-rprx-vision", "encryption": "none" }] }]
        },
        "streamSettings": {
          "network": "tcp",
          "security": "reality",
          "realitySettings": { "serverName": "www.apple.com", "publicKey": "…", "shortId": "…", "fingerprint": "chrome" }
        }
      },
      { "tag": "direct", "protocol": "freedom" },
      { "tag": "block", "protocol": "blackhole" }
    ],
    "routing": { "rules": [] }
  }
]

How the app handles the config

  • Main outbound: the one tagged proxy, otherwise the first that is not freedom, blackhole, dns or loopback.
  • Server name: remarks, then the tag, then the address.
  • outbounds, routing and dns stay as sent.
  • inbounds, log, stats and policy are replaced, otherwise the tunnel and counters would not work.
  • direct and block outbounds are added if missing. In VPN mode, DNS on port 53 is captured by a dns-out outbound.

sing-box and Clash

sing-box outbounds vless, vmess, trojan, shadowsocks, hysteria2 are read. In Clash YAML: vless, vmess, trojan, ss, hysteria2.

Serving JSON only to nya

In Remnawave, add a response rule for User-Agent matching ^nya/. Check the result with the request from the quick start.

Do not add large geo lists. Process memory on phones is limited, especially on iPhone: big geosite files break the connection.