Skip to content

Instantly share code, notes, and snippets.

@tcztzy
Last active April 5, 2018 13:31
Show Gist options
  • Save tcztzy/04a17af0ad927aedf0c1d8eaeeaa42e8 to your computer and use it in GitHub Desktop.
Save tcztzy/04a17af0ad927aedf0c1d8eaeeaa42e8 to your computer and use it in GitHub Desktop.
[Unit]
Description=Update PAC file from gfwlist
Wants=network-online.target
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/gfwlist2pac -i GFWLIST -f /etc/gfwlist2.pac -p "SOCKS5 127.0.0.1:1080;"
[Install]
WantedBy=default.target
[Unit]
Description=Run gfwlist2pac daily
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target
var dev = 'PROXY 127.0.0.1:8899; DIRECT';
function FindProxyForURL(url, host) {
if (dnsDomainIs(host, "your_local_development_domain")) {
return dev;
}
}
[Unit]
Description=Daemon to start Shadowsocks Client
Wants=network-online.target
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/sslocal -c /home/tcztzy/.config/shadowsocks/client.json --pid-file /var/run/sslocal.pid --log-file /var/log/sslocal.log
[Install]
WantedBy=default.target
http://frontend# http://127.0.0.1:8010/
http://backend 127.0.0.1:8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment