This commit is contained in:
Zachary Robert Thomas Boyd 2014-03-09 00:48:11 -05:00
parent 60378a6e12
commit 3082deff57
3 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,4 @@
all: clean multi-tor start_router haproxy check_install rc-local polipo-config tor-router-update rsyslog crontab
all: clean multi-tor start_router haproxy check_install rc-local polipo-config tor-router-update rsyslog crontab test
clean:
rm -rvf build
@ -37,6 +37,11 @@ tor-router-update:
php tor-router-update.sh.php > build/usr/local/bin/tor-router-update.sh
chmod +x build/usr/local/bin/tor-router-update.sh
test:
mkdir -pv build/usr/local/bin
php test.sh.php > build/usr/local/bin/test.sh
chmod +x build/usr/local/bin/test.sh
install: all
build/usr/local/bin/check_install.sh
cp -rv build/* /

View file

@ -2,6 +2,7 @@
define("BASE_PORT", "9051");
define("CONTROL_PORT", "15000");
define("TOR_DATA_DIR", "/data");
define("PROXY_PORT", "80");
define("INSTANCES", "10");
define("BALANCE_MODE", "roundrobin");
define("SOCKS_PORT", "9050");

View file

@ -27,6 +27,7 @@ proxyAddress = "::0" # both IPv4 and IPv6
# something else than the host name:
proxyName = "<?php echo gethostname(); ?>"
proxyPort = <?php echo PROXY_PORT."\n"; ?>
# Uncomment this if there's only one user using this instance of Polipo:
@ -38,7 +39,7 @@ proxyName = "<?php echo gethostname(); ?>"
# Uncomment this if you want to use a parent SOCKS proxy:
socksParentProxy = "localhost:9050"
socksParentProxy = "localhost:<?php echo SOCKS_PORT; ?>"
socksProxyType = socks5