Skip to content

示例配置 ​

json
{
  "PidFile": "amy4.pid",
  "AmyIns": [{
    "ProxyType": "Dns",
    "DnsSettings": {
      "ListenAddr": ":10530"
    }
  }, {
    "ProxyType": "Socks5",
    "Socks5Settings": {
      "ListenAddr": ":10800"
    }
  }],
  "Log": {
    "FilePath": "amy4.log"
  },
  "//": "以上内容不能修改",
  "AmyOuts": [{
    "Tag": "http",
    "ProxyType": "http",
    "HttpSettings": {
      "//": "HttpAddr留空表示net模式",
      "HttpAddrs": [""],
      "//": "HTTP模块",
      "HttpModify": {
        "DelLine": ["x-online-host"],
        "RegRep": {
          "https?://([^/]*)?/([^ ]*) [Hh][^\n]*\n": "/${2} [V]\r\nX-Online-Host: a.189.cn\r\n"
        }
      },
      "//": "HTTPS地址",
      "TunnelAddrs": ["180.97.104.168:443"],
      "//": "HTTPS模块",
      "TunnelModify": {
        "DelLine": ["host"],
        "SetFirst": "[M] [H]/a.189.cn [V]\r\n"
      },
      "//": "amy4Server地址及连接密码,代理UDP用",
      "ANetServerAddr": "服务器IP:服务器端口",
      "ServerKey": "服务器密码",
      "//": "Http TCP连接池, Net模式下不支持(不设置DestAddrs)",
      "HttpTCPPool": {},
      "//": "Tunnel TCP连接池, 不设置则不开启",
      "TunnelTCPPool": {
        "//": "最大空闲连接数",
        "MaxConn": 40,
        "//": "最小空闲连接数(达到最小空闲连接数时自动扩张到最大空闲连接数)",
        "MinConn": 5,
        "//": "生成连接速度(每秒生成N个连接)",
        "DialSpeed": 15,
        "//": "连接最大空闲时间, 超过该时间连接则将失效(如果不设置则永不失效)",
        "IdleSec": 57
      }
    }
  }],
  "Routers": []
}