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": {
      "HttpAddrs": ["10.0.0.200:80"],
      "//": "HTTP模块",
      "HttpModify": {
        "DelLine": ["x-online-host", "host"],
        "SetFirst": "[M] [U] [V]\r\nX-Online-Host:[H]\r\nHost:download.cloud.189.cn\r\n"
      },
      "//": "HTTPS地址",
      "TunnelAddrs": ["10.0.0.200:80"],
      "//": "HTTPS模块",
      "TunnelModify": {
        "SetFirst": "[M] [H]@download.cloud.189.cn [V]\r\n"
      },
      "//": "amy4Server地址及连接密码,代理UDP用",
      "ANetServerAddr": "服务器IP:服务器端口",
      "ServerKey": "服务器密码",
      "//": "Http TCP连接池, Net模式下不支持(不设置DestAddrs)",
      "HttpTCPPool": {
        "MaxConn": 20,
        "MinConn": 3,
        "DialSpeed": 9,
        "IdleSec": 57
      },
      "//": "Tunnel TCP连接池, 不设置则不开启",
      "TunnelTCPPool": {
        "MaxConn": 30,
        "MinConn": 5,
        "DialSpeed": 9,
        "IdleSec": 57
      }
    }
  }]
}