https://github.com/brglng/pac-server
A simple PAC server
https://github.com/brglng/pac-server
Last synced: 3 months ago
JSON representation
A simple PAC server
- Host: GitHub
- URL: https://github.com/brglng/pac-server
- Owner: brglng
- License: mpl-2.0
- Created: 2020-06-01T08:33:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T07:47:15.000Z (about 5 years ago)
- Last Synced: 2025-01-21T06:11:32.952Z (5 months ago)
- Language: Python
- Size: 51.8 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pac-server
A simple PAC server
# Install
git clone https://github.com/brglng/pac-server.git
cd pac-server
pip install --user .# Run
pac-server
# Configration
On first run, the program will generate its configuration file at
`~/.config/pac-server/config.ini`, its content is like this:```ini
[server]
host = 127.0.0.1
port = 1091
pac-path = /pac
update-interval = 43200[pac]
proxy = PROXY 127.0.0.1:8118;
gfwlist = https://github.com/gfwlist/gfwlist/raw/master/gfwlist.txt
precise = no[user-rules]
||google.com
||google.co.jp
||google.co.hk
||bbc.co.uk
||googleapis.com
||googlesyndication.com
||github.com
||wikipedia.org
```The configuration syntax is very straight forward. The `user-rules` section
uses the same syntax as `gfwlist`.