diff --git a/shadowsocks/Dockerfile b/shadowsocks/Dockerfile index 7e8527a..7e5dd13 100644 --- a/shadowsocks/Dockerfile +++ b/shadowsocks/Dockerfile @@ -13,10 +13,12 @@ RUN apt-get update \ ENV SERVER_ADDR 0.0.0.0 ENV SERVER_PORT 8388 -ENV PASSWORD secret -ENV METHOD aes-256-cfb -ENV TIMEOUT 300 -ENV WORKERS 10 +ENV PASSWORD secret +ENV METHOD aes-256-cfb +ENV TIMEOUT 300 +ENV WORKERS 10 + +EXPOSE 8388 CMD ssserver -s $SERVER_ADDR \ -p $SERVER_PORT \ diff --git a/shadowsocks/libev/Dockerfile b/shadowsocks/libev/Dockerfile new file mode 100644 index 0000000..c114e99 --- /dev/null +++ b/shadowsocks/libev/Dockerfile @@ -0,0 +1,32 @@ +# +# Dockerfile for shadowsocks-libev +# + +FROM debian:jessie +MAINTAINER kev + +RUN apt-get update \ + && apt-get install -y curl \ + && curl http://shadowsocks.org/debian/1D27208A.gpg | apt-key add - \ + && echo 'deb http://shadowsocks.org/debian wheezy main' > /etc/apt/sources.list.d/ss-libev.list \ + && apt-get update \ + && apt-get install -y shadowsocks-libev \ + && rm -rf /var/lib/apt/lists/* + +ENV SERVER_ADDR 0.0.0.0 +ENV SERVER_PORT 8388 +ENV PASSWORD secret +ENV METHOD aes-256-cfb +ENV TIMEOUT 300 +ENV DNS_ADDR 8.8.8.8 + +EXPOSE 8388 + +CMD ss-server -s $SERVER_ADDR \ + -p $SERVER_PORT \ + -k $PASSWORD \ + -m $METHOD \ + -t $TIMEOUT \ + --fast-open \ + -d $DNS_ADDR \ + -u diff --git a/shadowsocks/libev/README.md b/shadowsocks/libev/README.md new file mode 100644 index 0000000..e35e757 --- /dev/null +++ b/shadowsocks/libev/README.md @@ -0,0 +1,6 @@ +shadowsocks-libev +================= + +`shadowsocks-libev` is a lightweight secured socks5 proxy for embedded devices and low end boxes. + +It is a port of shadowsocks created by @clowwindy maintained by @madeye and @linusyang.