🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh
This commit is contained in:
casjay 2025-01-06 16:33:29 -05:00
parent ed77485933
commit 13b05dd7f2
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -240,12 +240,25 @@ __update_conf_files() {
if [ "$TOR_RELAY_ENABLED" = "yes" ]; then if [ "$TOR_RELAY_ENABLED" = "yes" ]; then
mkdir -p "$CONF_DIR/conf.d" mkdir -p "$CONF_DIR/conf.d"
cat <<EOF >"$CONF_DIR/relay.conf" cat <<EOF >"$CONF_DIR/relay.conf"
##### default rc RunAsDaemon 0
%include /etc/tor/torrc 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 ##### relay
LogMessageDomains 1 LogMessageDomains 1
Log notice file $LOG_DIR/relay.log Log notice file $LOG_DIR/tor-relay.log
SOCKSPort 10051 SOCKSPort 10051
BridgeRelay 1 BridgeRelay 1