Unverified Commit 97fd138d authored by Melroy van den Berg's avatar Melroy van den Berg
Browse files

Allow to change nickname

parent 495f2c5c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@
OR_PORT=
PT_PORT=
EMAIL=
# If you want, you could change the nickname of your bridge
#NICKNAME=DockerObfs4Bridge
# If needed, activate additional variables processing
#OBFS4_ENABLE_ADDITIONAL_VARIABLES=1
# and define desired torrc entries prefixed with OBFS4V_
+2 −0
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@ services:
      - PT_PORT=${PT_PORT:?Env var PT_PORT is not set.}
      # Exit with an error message if EMAIL is unset or empty.
      - EMAIL=${EMAIL:?Env var EMAIL is not set.}
      # Nickname with default value: "DockerObfs4Bridge"
      - NICKNAME=${NICKNAME:-DockerObfs4Bridge}
    env_file:
      - .env
    volumes:
+2 −4
Original line number Diff line number Diff line
#!/usr/bin/env bash

echo "Using OR_PORT=${OR_PORT}, PT_PORT=${PT_PORT}, and EMAIL=${EMAIL}."
echo "Using NICKNAME=${NICKNAME}, OR_PORT=${OR_PORT}, PT_PORT=${PT_PORT}, and EMAIL=${EMAIL}."

ADDITIONAL_VARIABLES_PREFIX="OBFS4V_"
ADDITIONAL_VARIABLES=
@@ -25,9 +25,7 @@ RunAsDaemon 0
# We don't need an open SOCKS port.
SocksPort 0
BridgeRelay 1
# A static nickname makes it easy to identify bridges that were set up using
# this Docker image.
Nickname DockerObfs4Bridge
Nickname ${NICKNAME}
Log notice file /var/log/tor/log
Log notice stdout
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy