2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-02 11:07:25 +01:00
This commit is contained in:
kev
2015-04-30 18:32:52 +08:00
parent c79ea7eace
commit e30bcdedfd
3 changed files with 11 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y build-essential curl python python-dev
RUN curl https://bootstrap.pypa.io/get-pip.py | python
RUN pip install obfsproxy
ENV LOG_MIN_SEVERITY info
ENV DATA_DIR /var/lib/obfsproxy
ENV PASSWORD XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ENV DEST_ADDR openvpn
@@ -18,5 +19,7 @@ ENV LISTEN_PORT 4911
EXPOSE $LISTEN_PORT
CMD obfsproxy --data-dir=$DATA_DIR scramblesuit --password=$PASSWORD --dest=$DEST_ADDR:$DEST_PORT \
server $LISTEN_ADDR:LISTEN_PORT
CMD obfsproxy --log-min-severity=$LOG_MIN_SEVERITY --data-dir=$DATA_DIR \
scramblesuit --password=$PASSWORD --dest=$DEST_ADDR:$DEST_PORT \
server $LISTEN_ADDR:$LISTEN_PORT