Smart proxy auto configuration (PAC)
A lightweight, fast PAC proxy configuration service. Only need to configure once, it will take effect on multiple devices automatically.
English | 中文
- Support http, socks proxy
- Support configuring domain proxy
- Support proxy shunting. Automatically shunt to different proxies according to the domain name, saving the trouble of configuration
Run with docker, support amd64, arm64
docker run -it -p 3000:3000 -v ./config/host.json:/app/config/host.json qutea/smart-pacAfter starting the service, you can access http://localhost:3000/auto.pac to get the pac configuration file, and configure this file in the browser or system proxy settings.
- The internal port of the service is 3000
- It is necessary to map the external configuration file to the inside of the container. Prevent the configuration from being lost after the container restarts
- Web Client
- Android
- MacOS
GET /auto.pacGet pac fileGET /api/hostListGet proxy host listPOST /api/updateHostAdd/modify proxy host, parameters{id: number, host: string, port: number, type: string}POST /api/deleteHostDelete proxy host, parameters{id: number}GET /api/ruleListGet proxy rule listPOST /api/updateRuleAdd/modify proxy rule, parameters[string, number[]]POST /api/deleteRuleDelete proxy rule, parameters{rule: string}
PORTService port, default 3000CONFIG_FILEConfiguration file path, default./config/host.jsonACCESS_TOKENAccess token for the service, default is empty. After setting, you need to addAuthorization: Bearer ${ACCESS_TOKEN}
{
"hosts": [{ "id": 1, "host": "1.example.com", "port": 8080, "type": "HTTP" }],
"rules": [
["*.google.com", [1]],
["*.google.com.hk", [1]],
["*.github.com", [1]],
["*.githubusercontent.com", [1]],
["*.googleapis.com", [1]],
["*.gstatic.com", [1]],
["*.ggpht.com", [1]],
["*.googlevideo.com", [1]],
["*.googleusercontent.com", [1]],
["*.youtu.be", [1]],
["*.youtube.com", [1]],
["*.ytimg.com", [1]],
["*.twitter.com", [1]],
["*.twimg.com", [1]],
["*.facebook.com", [1]],
["*.wikipedia.org", [1]]
]
}