Added simple-obfs to shadowsocks-libev docker image
Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
parent
132dc5d11a
commit
9612eb244d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user