Skip to content

Commit

Permalink
Added simple-obfs to shadowsocks-libev docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Teddysun <[email protected]>
  • Loading branch information
teddysun committed Jun 24, 2018
1 parent 132dc5d commit 9612eb2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/shadowsocks-libev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ MAINTAINER Teddysun <[email protected]>
RUN set -ex; \
printf "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list; \
apt-get update; \
apt-get -t stretch-backports install -y shadowsocks-libev; \
apt-get -t stretch-backports install -y shadowsocks-libev simple-obfs; \
rm -rf /var/lib/apt/lists/*;

COPY ./config_sample.json /etc/shadowsocks-libev/config.json
VOLUME /etc/shadowsocks-libev

USER nobody
Expand Down
17 changes: 17 additions & 0 deletions docker/shadowsocks-libev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@ You **must create a configuration file** `/etc/shadowsocks-libev/config.json` i
}
```

and if you want to enable **simple-obfs**, configuration file `/etc/shadowsocks-libev/config.json` sample like below£º

```
{
"server":"0.0.0.0",
"server_port":9000,
"password":"password0",
"timeout":300,
"method":"aes-256-gcm",
"fast_open":true,
"nameserver":"8.8.8.8",
"mode":"tcp_and_udp",
"plugin":"obfs-server",
"plugin_opts":"obfs=tls"
}
```

This container with sample configuration `/etc/shadowsocks-libev/config.json`
There is an example to start a container that listens on `9000` (both TCP and UDP):

Expand Down

0 comments on commit 9612eb2

Please sign in to comment.