From 13b05dd7f2a0000a68e55ad57d85660ccfa8c1a3 Mon Sep 17 00:00:00 2001 From: casjay Date: Mon, 6 Jan 2025 16:33:29 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh --- .../local/etc/docker/init.d/02-tor-relay.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh b/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh index 8836939..a075767 100755 --- a/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh +++ b/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh @@ -240,12 +240,25 @@ __update_conf_files() { if [ "$TOR_RELAY_ENABLED" = "yes" ]; then mkdir -p "$CONF_DIR/conf.d" cat <"$CONF_DIR/relay.conf" -##### default rc -%include /etc/tor/torrc +RunAsDaemon 0 +HardwareAccel 1 +ControlSocketsGroupWritable 1 +CookieAuthentication 1 +CookieAuthFileGroupReadable 1 +HashedControlPassword 16:C30604D1D90F341360A14D9A1048C1DF4A3CA2411444E52EE5B954C01F + +##### directiories and files +DataDirectory $DATA_DIR +ControlSocket $RUN_DIR/relay.sock +CookieAuthFile $RUN_DIR/relay.authcookie + +##### socks option +SafeSocks ${TOR_SOCKS_SAFE:-0} +SocksTimeout ${TOR_SOCKS_TIMEOUT:-10} ##### relay LogMessageDomains 1 -Log notice file $LOG_DIR/relay.log +Log notice file $LOG_DIR/tor-relay.log SOCKSPort 10051 BridgeRelay 1