🗃️ 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-bridge.sh
rootfs/usr/local/etc/docker/init.d/01-tor-hidden.sh
rootfs/usr/local/etc/docker/init.d/01-tor-relay.sh
rootfs/usr/local/etc/docker/init.d/01-tor-server.sh
rootfs/usr/local/etc/docker/init.d/03-privoxy.sh
This commit is contained in:
casjay
2025-01-06 14:32:40 -05:00
parent b0ada3709e
commit c0baa184a1
10 changed files with 32 additions and 30 deletions

View File

@@ -237,7 +237,7 @@ __update_conf_files() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# define actions
if [ "$TOR_BRIDGE_ENABLED" = "yes" ]; then
mkdir -p "$CONF_DIR/bridge"
mkdir -p "$CONF_DIR/bridge.d"
cat <<EOF >"$CONF_DIR/bridge.conf"
#### bridge
LogMessageDomains 1
@@ -255,13 +255,13 @@ AccountingMax ${TOR_ACCOUNT_MAX:-1000} GBytes
AccountingStart month 1 00:00
DirPort ${TOR_DIR_PORT:-8080}
DirPortFrontPage /usr/share/tor/html/exit.html
%include $CONF_DIR/bridge/*.conf
%include $CONF_DIR/bridge.d/*.conf
EOF
else
exit 1
fi
[ -f "$CONF_DIR/bridge/default.conf" ] || touch "$CONF_DIR/bridge/default.conf"
[ -f "$CONF_DIR/bridge.d/default.conf" ] || touch "$CONF_DIR/bridge.d/default.conf"
# allow custom functions
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi