Added simple-obfs to shadowsocks-libev docker image

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2018-06-24 11:13:29 +09:00
parent 132dc5d11a
commit 9612eb244d
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D
2 changed files with 19 additions and 1 deletions

View File

@ -9,9 +9,10 @@ MAINTAINER Teddysun <i@teddysun.com>
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

View File

@ -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):