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:
parent
7ac34f7802
commit
127de8b03d
@ -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 \
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user