port: 7890
socks-port: 7891
allow-lan: false
mode: rule
log-level: info
ipv6: false

# ================= 固定专属节点 =================
proxies:
  # ================= Cloudflare Tunnel 专属节点集群 =================
  - name: "🇺🇸 cft 🇭🇰"
    type: vless
    server: 104.18.11.128
    port: 443
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: ws
    tls: true
    udp: true
    servername: node.jaydentune.top
    client-fingerprint: chrome
    ws-opts:
      path: "/ray"
      headers:
        Host: node.jaydentune.top

  - name: "🇺🇸 cft 🇭🇰 2"
    type: vless
    server: 104.19.152.180
    port: 443
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: ws
    tls: true
    udp: true
    servername: node.jaydentune.top
    client-fingerprint: chrome
    ws-opts:
      path: "/ray"
      headers:
        Host: node.jaydentune.top

  - name: "🇺🇸 cft 🇺🇸 (洛杉矶)"
    type: vless
    server: 198.41.214.141
    port: 443
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: ws
    tls: true
    udp: true
    servername: node.jaydentune.top
    client-fingerprint: chrome
    ws-opts:
      path: "/ray"
      headers:
        Host: node.jaydentune.top

  - name: "🇺🇸 cft 🇺🇸 (洛杉矶 2)"
    type: vless
    server: 104.21.199.133
    port: 443
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: ws
    tls: true
    udp: true
    servername: node.jaydentune.top
    client-fingerprint: chrome
    ws-opts:
      path: "/ray"
      headers:
        Host: node.jaydentune.top

  - name: "🇺🇸 cft 🇺🇸 (西雅图)"
    type: vless
    server: 104.21.17.55
    port: 443
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: ws
    tls: true
    udp: true
    servername: node.jaydentune.top
    client-fingerprint: chrome
    ws-opts:
      path: "/ray"
      headers:
        Host: node.jaydentune.top

  - name: "🇺🇸 cf.090227.xyz"
    type: vless
    server: cf.090227.xyz
    port: 443
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: ws
    tls: true
    udp: true
    servername: node.jaydentune.top
    client-fingerprint: chrome
    ws-opts:
      path: "/ray"
      headers:
        Host: node.jaydentune.top

  - name: "🇺🇸 cmcc.hw.090227.xyz"
    type: vless
    server: cmcc.hw.090227.xyz
    port: 443
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: ws
    tls: true
    udp: true
    servername: node.jaydentune.top
    client-fingerprint: chrome
    ws-opts:
      path: "/ray"
      headers:
        Host: node.jaydentune.top

  - name: "🇺🇸 ip.164746.xyz"
    type: vless
    server: ip.164746.xyz
    port: 443
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: ws
    tls: true
    udp: true
    servername: node.jaydentune.top
    client-fingerprint: chrome
    ws-opts:
      path: "/ray"
      headers:
        Host: node.jaydentune.top

  - name: "🇺🇸 node.jaydentune.top"
    type: vless
    server: node.jaydentune.top
    port: 443
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: ws
    tls: true
    udp: true
    servername: node.jaydentune.top
    client-fingerprint: chrome
    ws-opts:
      path: "/ray"
      headers:
        Host: node.jaydentune.top

  # ================= Reality 节点集合 =================
  - name: "🇺🇸 Reality 直连"
    type: vless
    server: 107.172.214.195
    port: 14956
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: tcp
    tls: true
    udp: true
    flow: xtls-rprx-vision
    servername: academy.nvidia.com
    reality-opts:
      public-key: jK8yu9AMtNQ4J_uKE1inAzJr6V5J4GNK3sAN6nZBbUo
      short-id: 6ba85179e30d4fc2
    client-fingerprint: chrome

#  - name: "🇺🇸 VLESS 链式(美国)"
#    type: vless
#    server: 107.172.214.195
#    port: 14956
#    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
#    network: tcp
#    tls: true
#    udp: true
#    flow: xtls-rprx-vision
#    servername: academy.nvidia.com
#    reality-opts:
#      public-key: jK8yu9AMtNQ4J_uKE1inAzJr6V5J4GNK3sAN6nZBbUo
#      short-id: 6ba85179e30d4fc2
#    client-fingerprint: chrome
#    dialer-proxy: "⚡ 飞鸟云-美国节点自动优先"
#
#  - name: "🇺🇸 VLESS 链式(东南亚)"
#    type: vless
#    server: 107.172.214.195
#    port: 14956
#    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
#    network: tcp
#    tls: true
#    udp: true
#    flow: xtls-rprx-vision
#    servername: academy.nvidia.com
#    reality-opts:
#      public-key: jK8yu9AMtNQ4J_uKE1inAzJr6V5J4GNK3sAN6nZBbUo
#      short-id: 6ba85179e30d4fc2
#    client-fingerprint: chrome
#    dialer-proxy: "⚡ 飞鸟云-东南亚节点自动优先"

  - name: "🇺🇸 Reality 链式"
    type: vless
    server: 107.172.214.195
    port: 14956
    uuid: 2af77824-f83d-4f50-9dd0-560bb6e7cd45
    network: tcp
    tls: true
    udp: true
    flow: xtls-rprx-vision
    servername: academy.nvidia.com
    reality-opts:
      public-key: jK8yu9AMtNQ4J_uKE1inAzJr6V5J4GNK3sAN6nZBbUo
      short-id: 6ba85179e30d4fc2
    client-fingerprint: chrome
    dialer-proxy: "⚡ 飞鸟云-自动优选"

  # ================= Hysteria 2 节点集合 =================
  - name: "🇺🇸 Hysteria 2 直连"
    type: hysteria2
    server: 107.172.214.195
    port: 8443
    password: Hy2Pass_8899_Secure
    sni: bing.com
    skip-cert-verify: true

#  - name: "🇺🇸 Hysteria 2 链式(美国)"
#    type: hysteria2
#    server: 107.172.214.195
#    port: 8443
#    password: Hy2Pass_8899_Secure
#    sni: bing.com
#    skip-cert-verify: true
#    dialer-proxy: "⚡ 飞鸟云-美国节点自动优先"
#
#  - name: "🇺🇸 Hysteria 2 链式(东南亚)"
#    type: hysteria2
#    server: 107.172.214.195
#    port: 8443
#    password: Hy2Pass_8899_Secure
#    sni: bing.com
#    skip-cert-verify: true
#    dialer-proxy: "⚡ 飞鸟云-东南亚节点自动优先"

  - name: "🇺🇸 Hysteria 2 链式"
    type: hysteria2
    server: 107.172.214.195
    port: 8443
    password: Hy2Pass_8899_Secure
    sni: bing.com
    skip-cert-verify: true
    dialer-proxy: "⚡ 飞鸟云-自动优选"

# ================= 动态订阅提供商 (飞鸟云) =================
# 只要 Clash 点击更新，就会自动从你的订阅拉取最新节点，永不过期
proxy-providers:
  feiniao:
    type: http
    url: "https://34584224.908970.xyz/api/v1/client/subscribe?token=92723de54c6e734ccfd43d28351f9eb0"
    path: ./providers/feiniao.yaml
    interval: 86400
    health-check:
      enable: true
      interval: 300
      url: http://cp.cloudflare.com/generate_204

# ================= 策略组 =================
proxy-groups:
  # 客户端主界面主控：一键切换使用 Reality 套件、Hysteria 2 套件 或 飞鸟云
  - name: "RackNerd VPS 🇺🇸"
    type: select
    proxies:
      - "⚡ 自动优选"
      - "⚡ sw-自动选择"
      - "⚡ Reality 自动选择"
      - "⚡ Hysteria 2 自动选择"
      - "🛡️ 故障转移"
      - "🇺🇸 Reality 直连"
      - "🇺🇸 Reality 链式"
      - "🇺🇸 Hysteria 2 直连"
      - "🇺🇸 Hysteria 2 链式"
      - "🇺🇸 cft 🇭🇰"
      - "🇺🇸 cft 🇭🇰 2"
      - "🇺🇸 cft 🇺🇸 (洛杉矶)"
      - "🇺🇸 cft 🇺🇸 (洛杉矶 2)"
      - "🇺🇸 cft 🇺🇸 (西雅图)"
      - "🇺🇸 cf.090227.xyz"
      - "🇺🇸 cmcc.hw.090227.xyz"
      - "🇺🇸 ip.164746.xyz"
      - "🇺🇸 node.jaydentune.top"


  # 隧道自动优选组：定期跑分测速，始终自动挑选延迟最低的优质节点（接受跳连接）
  - name: "⚡ 自动优选"
    type: url-test
    url: http://cp.cloudflare.com/generate_204
    interval: 90
    tolerance: 20
    hidden: true
    proxies:
      # 简化写法
      - "⚡ sw-自动选择"
      - "⚡ Reality 自动选择"
      - "⚡ Hysteria 2 自动选择"
#      - "🇺🇸 cf.090227.xyz"
#      - "🇺🇸 cmcc.hw.090227.xyz"
#      - "🇺🇸 ip.164746.xyz"
#      - "🇺🇸 node.jaydentune.top"
#      - "🇺🇸 VLESS 链式(美国)"
#      - "🇺🇸 VLESS 链式(东南亚)"
#      - "🇺🇸 VLESS 直连"
#      - "🇺🇸 Hysteria 2 链式(美国)"
#      - "🇺🇸 Hysteria 2 链式(东南亚)"
#      - "🇺🇸 Hysteria 2 直连"

  # 隧道自动优选组：定期跑分测速，始终自动挑选延迟最低的优质节点（接受跳连接）
  - name: "⚡ sw-自动选择"
    type: url-test
    url: http://cp.cloudflare.com/generate_204
    interval: 90
    tolerance: 20
    hidden: true
    proxies:
      - "🇺🇸 cft 🇭🇰"
      - "🇺🇸 cft 🇭🇰 2"
      - "🇺🇸 cft 🇺🇸 (洛杉矶)"
      - "🇺🇸 cft 🇺🇸 (洛杉矶 2)"
      - "🇺🇸 cft 🇺🇸 (西雅图)"
      - "🇺🇸 cf.090227.xyz"
      - "🇺🇸 cmcc.hw.090227.xyz"
      - "🇺🇸 ip.164746.xyz"
      - "🇺🇸 node.jaydentune.top"

  # 2. 全局故障转移组：严格按顺序排列，平时死死走最快的主力不跳连接，断线才顺延降级
  - name: "🛡️ 故障转移"
    type: fallback
    url: http://cp.cloudflare.com/generate_204
    interval: 90
    hidden: true
    proxies:
      - "🇺🇸 Hysteria 2 直连"
      - "🇺🇸 Reality 直连"
      - "🇺🇸 cft 🇭🇰"
      - "🇺🇸 cft 🇭🇰 2"
      - "🇺🇸 cft 🇺🇸 (洛杉矶)"
      - "🇺🇸 cft 🇺🇸 (洛杉矶 2)"
      - "🇺🇸 cft 🇺🇸 (西雅图)"
      - "🇺🇸 Reality 链式"
      - "🇺🇸 Hysteria 2 链式"
      - "🇺🇸 cf.090227.xyz"
      - "🇺🇸 cmcc.hw.090227.xyz"
      - "🇺🇸 ip.164746.xyz"
      - "🇺🇸 node.jaydentune.top"


  # Reality 专属双节点自动优选池
  - name: "⚡ Reality 自动选择"
    type: url-test
    url: http://cp.cloudflare.com/generate_204
    interval: 90
    tolerance: 20
    lazy: true
    hidden: true
    proxies:
#      - "🇺🇸 VLESS 链式(美国)"
#      - "🇺🇸 VLESS 链式(东南亚)"
      - "🇺🇸 Reality 链式"
      - "🇺🇸 Reality 直连"

  # Hy2 专属双节点自动优选池
  - name: "⚡ Hysteria 2 自动选择"
    type: url-test
    url: http://cp.cloudflare.com/generate_204
    interval: 90
    tolerance: 20
    lazy: true
    hidden: true
    proxies:
#      - "🇺🇸 Hysteria 2 链式(美国)"
#      - "🇺🇸 Hysteria 2 链式(东南亚)"
      - "🇺🇸 Hysteria 2 链式"
      - "🇺🇸 Hysteria 2 直连"

    # 飞鸟云独立自动优选
  - name: "飞鸟云"
    type: select
    use:
      - feiniao

#    # 飞鸟云-美国节点
#  - name: "⚡ 飞鸟云-美国节点自动优先"
#    type: url-test
#    lazy: true
#    url: http://cp.cloudflare.com/generate_204
#    interval: 180
#    tolerance: 30
#    hidden: true
#    use:
#      - feiniao
#    filter: "美国"

#    # 飞鸟云-东南亚节点
#  - name: "⚡ 飞鸟云-东南亚节点自动优先"
#    type: url-test
#    lazy: true
#    url: http://cp.cloudflare.com/generate_204
#    interval: 180
#    tolerance: 30
#    hidden: true
#    use:
#      - feiniao
#    filter: "日本|新加坡|台湾"

    # 飞鸟云-全部节点自动优选
  - name: "⚡ 飞鸟云-自动优选"
    type: url-test
    lazy: true
    url: http://cp.cloudflare.com/generate_204
    interval: 90
    tolerance: 20
    hidden: true
    use:
      - feiniao
    filter: "^(?!.*(流量|重置|到期|下载|更新|电报|防失联)).*$"

# ================= 路由分流规则 =================
rules:
  # 关键：订阅域名强制走直连，绝不能走代理，防止死锁与超时
  - DOMAIN,34584224.908970.xyz,DIRECT
  - GEOIP,LAN,DIRECT
  - GEOSITE,CN,DIRECT           # 建议加上国内域名直连，速度更快更准
  - GEOIP,CN,DIRECT
  - MATCH,RackNerd VPS 🇺🇸