🗃️ Committing everything that changed 🗃️

rootfs/tmp/etc/tor/bridge.conf
rootfs/tmp/etc/tor/hidden.conf
rootfs/tmp/etc/tor/relay.conf
rootfs/tmp/etc/tor/server.conf
rootfs/tmp/etc/tor/torrc
rootfs/usr/local/etc/docker/init.d/01-tor-server.sh
rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh
rootfs/usr/local/etc/docker/init.d/03-tor-bridge.sh
rootfs/usr/local/etc/docker/init.d/04-tor-hidden.sh
This commit is contained in:
casjay
2025-01-06 15:17:34 -05:00
parent 1e19b4d586
commit 0fd0a45c36
9 changed files with 35 additions and 32 deletions

View File

@@ -238,7 +238,7 @@ __update_conf_files() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# define actions
if [ "$TOR_HIDDEN_ENABLED" = "yes" ]; then
mkdir -p "$CONF_DIR/hidden.d"
mkdir -p "$CONF_DIR/conf.d"
mkdir -p "$DATA_DIR/hidden_service"
chmod 700 "$DATA_DIR/hidden_service"
cat <<EOF >"$CONF_DIR/hidden.conf"
@@ -252,13 +252,13 @@ Log notice file $LOG_DIR/hidden.log
SOCKSPort 10053
HiddenServiceDir $DATA_DIR/hidden_service/default
HiddenServicePort 80 127.0.0.1:80
%include $CONF_DIR/hidden.d/*.conf
%include $CONF_DIR/conf.d/*.conf
EOF
else
exit 1
fi
[ -f "$CONF_DIR/hidden.d/default.conf" ] || touch "$CONF_DIR/hidden.d/default.conf"
[ -f "$CONF_DIR/conf.d/default.conf" ] || touch "$CONF_DIR/conf.d/default.conf"
# allow custom functions
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi