mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-01-18 00:34:29 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
This commit is contained in:
parent
bb88fff470
commit
91973a95ea
@ -259,6 +259,7 @@ SocksTimeout ${TOR_SOCKS_TIMEOUT:-10}
|
||||
#### bridge
|
||||
LogMessageDomains 1
|
||||
Log notice file $LOG_DIR/tor-bridge.log
|
||||
#Log debug file $LOG_DIR/debug.log
|
||||
|
||||
SOCKSPort 0
|
||||
|
||||
@ -284,7 +285,9 @@ EOF
|
||||
else
|
||||
unset EXEC_CMD_BIN EXEC_CMD_ARGS
|
||||
fi
|
||||
|
||||
if [ "$TOR_DEBUG" = "yes" ]; then
|
||||
sed -i 's|#Log debug|Log debug|g' "$CONF_DIR/bridge.conf"
|
||||
fi
|
||||
# allow custom functions
|
||||
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi
|
||||
# exit function
|
||||
|
@ -259,6 +259,7 @@ SocksTimeout ${TOR_SOCKS_TIMEOUT:-10}
|
||||
##### relay
|
||||
LogMessageDomains 1
|
||||
Log notice file $LOG_DIR/tor-relay.log
|
||||
#Log debug file $LOG_DIR/debug.log
|
||||
|
||||
SOCKSPort 0
|
||||
|
||||
@ -282,6 +283,9 @@ EOF
|
||||
else
|
||||
unset EXEC_CMD_BIN EXEC_CMD_ARGS
|
||||
fi
|
||||
if [ "$TOR_DEBUG" = "yes" ]; then
|
||||
sed -i 's|#Log debug|Log debug|g' "$CONF_DIR/relay.conf"
|
||||
fi
|
||||
|
||||
# allow custom functions
|
||||
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi
|
||||
|
@ -265,6 +265,7 @@ SOCKSPort 0.0.0.0:9050
|
||||
##### logging
|
||||
LogMessageDomains 1
|
||||
Log notice file $LOG_DIR/tor-server.log
|
||||
#Log debug file $LOG_DIR/debug.log
|
||||
|
||||
##### port mappings
|
||||
TransPort 0.0.0.0:9040
|
||||
@ -281,7 +282,6 @@ EOF
|
||||
mkdir -p "$CONF_DIR/conf.d"
|
||||
cat <<EOF >>"$CONF_DIR/server.conf"
|
||||
#### dns forwarder
|
||||
LogMessageDomains 1
|
||||
Log notice file $LOG_DIR/tor-dns.log
|
||||
|
||||
DNSPort 8053
|
||||
@ -317,6 +317,9 @@ EOF
|
||||
%include $CONF_DIR/conf.d/*.conf
|
||||
|
||||
EOF
|
||||
if [ "$TOR_DEBUG" = "yes" ]; then
|
||||
sed -i 's|#Log debug|Log debug|g' "$CONF_DIR/server.conf"
|
||||
fi
|
||||
|
||||
# allow custom functions
|
||||
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi
|
||||
@ -371,14 +374,12 @@ __post_execute() {
|
||||
fi
|
||||
if [ -d "$DATA_DIR/services" ]; then
|
||||
[ -f "$WWW_ROOT_DIR/hostnames.html" ] && rm -f "$WWW_ROOT_DIR/hostnames.html"
|
||||
for d in "$DATA_DIR/services"/*;do
|
||||
for host in "$d"/hostname; do
|
||||
for host in "$DATA_DIR/services"/*/hostname; do
|
||||
name="$(basename "$d")"
|
||||
url="$(<"$host")"
|
||||
echo "$name: $url"
|
||||
echo '<a href="http://'$url'">'$name'</a><br />' >>"$WWW_ROOT_DIR/hostnames.html"
|
||||
done
|
||||
done
|
||||
fi
|
||||
# show exit message
|
||||
__banner "$postMessageEnd: Status $retVal"
|
||||
|
Loading…
x
Reference in New Issue
Block a user