configure 'Address' as an environment variable

This commit is contained in:
Joe Chander 2020-07-06 19:35:16 -05:00
parent 52ac610b57
commit 76c0375a23
6 changed files with 5 additions and 0 deletions

0
tor-relay/Dockerfile Normal file → Executable file
View File

1
tor-relay/README.md Normal file → Executable file
View File

@ -10,3 +10,4 @@
| **RELAY_BANDWIDTH_RATE** | Limit how much traffic will be allowed through your relay (must be > 20KB/s) | 100 KBytes |
| **RELAY_BANDWIDTH_BURST** | Allow temporary bursts up to a certain amount | 200 KBytes |
| **RELAY_PORT** | Default port used for incoming Tor connections (ORPort) | 9001 |
| **RELAY_ADDRESS** | The public IP/FQDN of your relay | none |

1
tor-relay/run.sh Normal file → Executable file
View File

@ -12,6 +12,7 @@ for relaytype in bridge middle exit; do
sed -i "s/RELAY_BANDWIDTH_RATE/${RELAY_BANDWIDTH_RATE}/g" "$file"
sed -i "s/RELAY_BANDWIDTH_BURST/${RELAY_BANDWIDTH_BURST}/g" "$file"
sed -i "s/RELAY_PORT/${RELAY_PORT}/g" "$file"
sed -i "s/RELAY_ADDRESS/${RELAY_ADDRESS}/g" "$file"
done
exec tor -f "/etc/tor/torrc.${RELAY_TYPE}"

1
tor-relay/torrc.bridge Normal file → Executable file
View File

@ -91,6 +91,7 @@ ORPort RELAY_PORT
## The IP address or full DNS name for incoming connections to your
## relay. Leave commented out and Tor will guess.
#Address noname.example.com
Address RELAY_ADDRESS
## If you have multiple network interfaces, you can specify one for
## outgoing traffic to use.

1
tor-relay/torrc.exit Normal file → Executable file
View File

@ -91,6 +91,7 @@ ORPort RELAY_PORT
## The IP address or full DNS name for incoming connections to your
## relay. Leave commented out and Tor will guess.
#Address noname.example.com
Address RELAY_ADDRESS
## If you have multiple network interfaces, you can specify one for
## outgoing traffic to use.

1
tor-relay/torrc.middle Normal file → Executable file
View File

@ -91,6 +91,7 @@ ORPort RELAY_PORT
## The IP address or full DNS name for incoming connections to your
## relay. Leave commented out and Tor will guess.
#Address noname.example.com
Address RELAY_ADDRESS
## If you have multiple network interfaces, you can specify one for
## outgoing traffic to use.