mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
configure 'Address' as an environment variable
This commit is contained in:
parent
52ac610b57
commit
76c0375a23
0
tor-relay/Dockerfile
Normal file → Executable file
0
tor-relay/Dockerfile
Normal file → Executable file
1
tor-relay/README.md
Normal file → Executable file
1
tor-relay/README.md
Normal file → Executable 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_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_BANDWIDTH_BURST** | Allow temporary bursts up to a certain amount | 200 KBytes |
|
||||||
| **RELAY_PORT** | Default port used for incoming Tor connections (ORPort) | 9001 |
|
| **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
1
tor-relay/run.sh
Normal file → Executable 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_RATE/${RELAY_BANDWIDTH_RATE}/g" "$file"
|
||||||
sed -i "s/RELAY_BANDWIDTH_BURST/${RELAY_BANDWIDTH_BURST}/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_PORT/${RELAY_PORT}/g" "$file"
|
||||||
|
sed -i "s/RELAY_ADDRESS/${RELAY_ADDRESS}/g" "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
exec tor -f "/etc/tor/torrc.${RELAY_TYPE}"
|
exec tor -f "/etc/tor/torrc.${RELAY_TYPE}"
|
||||||
|
|
1
tor-relay/torrc.bridge
Normal file → Executable file
1
tor-relay/torrc.bridge
Normal file → Executable file
|
@ -91,6 +91,7 @@ ORPort RELAY_PORT
|
||||||
## The IP address or full DNS name for incoming connections to your
|
## The IP address or full DNS name for incoming connections to your
|
||||||
## relay. Leave commented out and Tor will guess.
|
## relay. Leave commented out and Tor will guess.
|
||||||
#Address noname.example.com
|
#Address noname.example.com
|
||||||
|
Address RELAY_ADDRESS
|
||||||
|
|
||||||
## If you have multiple network interfaces, you can specify one for
|
## If you have multiple network interfaces, you can specify one for
|
||||||
## outgoing traffic to use.
|
## outgoing traffic to use.
|
||||||
|
|
1
tor-relay/torrc.exit
Normal file → Executable file
1
tor-relay/torrc.exit
Normal file → Executable file
|
@ -91,6 +91,7 @@ ORPort RELAY_PORT
|
||||||
## The IP address or full DNS name for incoming connections to your
|
## The IP address or full DNS name for incoming connections to your
|
||||||
## relay. Leave commented out and Tor will guess.
|
## relay. Leave commented out and Tor will guess.
|
||||||
#Address noname.example.com
|
#Address noname.example.com
|
||||||
|
Address RELAY_ADDRESS
|
||||||
|
|
||||||
## If you have multiple network interfaces, you can specify one for
|
## If you have multiple network interfaces, you can specify one for
|
||||||
## outgoing traffic to use.
|
## outgoing traffic to use.
|
||||||
|
|
1
tor-relay/torrc.middle
Normal file → Executable file
1
tor-relay/torrc.middle
Normal file → Executable file
|
@ -91,6 +91,7 @@ ORPort RELAY_PORT
|
||||||
## The IP address or full DNS name for incoming connections to your
|
## The IP address or full DNS name for incoming connections to your
|
||||||
## relay. Leave commented out and Tor will guess.
|
## relay. Leave commented out and Tor will guess.
|
||||||
#Address noname.example.com
|
#Address noname.example.com
|
||||||
|
Address RELAY_ADDRESS
|
||||||
|
|
||||||
## If you have multiple network interfaces, you can specify one for
|
## If you have multiple network interfaces, you can specify one for
|
||||||
## outgoing traffic to use.
|
## outgoing traffic to use.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user