1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00

gen random password

This commit is contained in:
kev 2015-06-20 02:25:40 +08:00
parent 7ac34f7802
commit 127de8b03d
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ RUN apk add --update curl python \
ENV SERVER_ADDR 0.0.0.0
ENV SERVER_PORT 8388
ENV PASSWORD secret
ENV PASSWORD=
ENV METHOD aes-256-cfb
ENV TIMEOUT 300
ENV WORKERS 10
@ -22,7 +22,7 @@ EXPOSE $SERVER_PORT
CMD ssserver -s $SERVER_ADDR \
-p $SERVER_PORT \
-k $PASSWORD \
-k ${PASSWORD:-$(head -c 6 /dev/urandom | base64)} \
-m $METHOD \
-t $TIMEOUT \
--fast-open \

View File

@ -22,7 +22,7 @@ RUN apk add --update $SS_DEP \
ENV SERVER_ADDR 0.0.0.0
ENV SERVER_PORT 8388
ENV PASSWORD secret
ENV PASSWORD=
ENV METHOD aes-256-cfb
ENV TIMEOUT 300
ENV DNS_ADDR 8.8.8.8
@ -31,7 +31,7 @@ EXPOSE $SERVER_PORT
CMD ss-server -s $SERVER_ADDR \
-p $SERVER_PORT \
-k $PASSWORD \
-k ${PASSWORD:-$(head -c 6 /dev/urandom | base64)} \
-m $METHOD \
-t $TIMEOUT \
--fast-open \