Tidied up the tinyproxy integration and added env vars and documentation

This commit is contained in:
Jeremy Andrews
2017-06-17 15:09:17 +12:00
parent 894d36e4af
commit af699006c7
7 changed files with 33 additions and 127 deletions

View File

@@ -54,7 +54,15 @@ if [ -n "${LOCAL_NETWORK-}" ]; then
fi
fi
/opt/tinyproxy/run.sh ANY
/etc/init.d/tinyproxy start
if [ "${WEBPROXY_ENABLED}" = "true" ]; then
if [ -z "$WEBPROXY_PORT" ] ; then
/opt/tinyproxy/setport.sh $WEBPROXY_PORT
else
# Alway default back to port 8888
/opt/tinyproxy/setport.sh 8888
fi
/etc/init.d/tinyproxy start
fi
exec openvpn $TRANSMISSION_CONTROL_OPTS $OPENVPN_OPTS --config "$OPENVPN_CONFIG"