Skip to content

config hermes

yml
mixed-port: 7890

allow-lan: false
bind-address: 127.0.0.1

mode: rule
log-level: info

ipv6: false
unified-delay: true
tcp-concurrent: true

profile:
  store-selected: true

proxy-providers:
  subscription:
    type: http
    url: "你的 Clash 订阅 URL"
    path: ./proxy_providers/subscription.yaml
    interval: 86400

    # 获取订阅本身走直连
    proxy: DIRECT

    health-check:
      enable: true
      url: https://www.gstatic.com/generate_204
      interval: 300
      timeout: 5000
      lazy: true

proxy-groups:
  - name: PROXY
    type: url-test

    use:
      - subscription

    url: https://www.gstatic.com/generate_204

    # 每 5 分钟重新测试
    interval: 300

    # 延迟差小于 100ms 时避免频繁切换
    tolerance: 100

    timeout: 5000

rules:
  # GitHub
  - DOMAIN-SUFFIX,github.com,PROXY
  - DOMAIN-SUFFIX,githubusercontent.com,PROXY
  - DOMAIN-SUFFIX,githubassets.com,PROXY
  - DOMAIN-SUFFIX,github.io,PROXY
  - DOMAIN-SUFFIX,ghcr.io,PROXY

  # Playwright browser downloads
  - DOMAIN,cdn.playwright.dev,PROXY
  - DOMAIN,playwright.download.prss.microsoft.com,PROXY

  # Chrome for Testing 实际下载存储
  - DOMAIN,storage.googleapis.com,PROXY

  # 其他全部直连
  - MATCH,DIRECT