|
|
@ -33,7 +33,7 @@ $ docker run -p 8388:8388 -p 8388:8388/udp -d --restart always shadowsocks/shado |
|
|
|
``` |
|
|
|
This starts a container of the latest release with all the default settings, which is equivalent to |
|
|
|
```bash |
|
|
|
$ ss-server -s 0.0.0.0 -p 8388 -k "$(hostname)" -m aes-256-cfb -t 300 --fast-open -d "8.8.8.8,8.8.4.4" -u |
|
|
|
$ ss-server -s 0.0.0.0 -p 8388 -k "$(hostname)" -m aes-256-gcm -t 300 --fast-open -d "8.8.8.8,8.8.4.4" -u |
|
|
|
``` |
|
|
|
> **Note**: It's the hostname in the container that is used as the password, not that of the host. |
|
|
|
|
|
|
@ -59,7 +59,8 @@ $ docker run -e PASSWORD=9MLSpPmNt -p 8388:8388 -p 8388:8388/udp -d --restart al |
|
|
|
### With other customizations |
|
|
|
Besides `PASSWORD`, the image also defines the following environment variables that you can customize: |
|
|
|
* `SERVER_ADDR`: the IP/domain to bind to, defaults to `0.0.0.0` |
|
|
|
* `METHOD`: encryption method to use, defaults to `aes-256-cfb` |
|
|
|
* `SERVER_ADDR_IPV6`: the IPv6 address to bind to, defaults to `::0` |
|
|
|
* `METHOD`: encryption method to use, defaults to `aes-256-gcm` |
|
|
|
* `TIMEOUT`: defaults to `300` |
|
|
|
* `DNS_ADDRS`: DNS servers to redirect NS lookup requests to, defaults to `8.8.8.8,8.8.4.4` |
|
|
|
|
|
|
@ -81,7 +82,7 @@ shadowsocks: |
|
|
|
ports: |
|
|
|
- "8388:8388" |
|
|
|
environment: |
|
|
|
- METHOD=aes-256-cfb |
|
|
|
- METHOD=aes-256-gcm |
|
|
|
- PASSWORD=9MLSpPmNt |
|
|
|
restart: always |
|
|
|
``` |
|
|
@ -109,7 +110,7 @@ Don't forget to share internet with your friends. |
|
|
|
"local_port": 1080, |
|
|
|
"password": "9MLSpPmNt", |
|
|
|
"timeout": 600, |
|
|
|
"method": "aes-256-cfb" |
|
|
|
"method": "aes-256-gcm" |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|