<commit_before># kcp-shadowsocks-docker

A docker image for shadowsocks server with KCPTUN support

### Download from Docker Hub 

    docker pull imhang/kcp-shadowsocks-docker

### Usage

    docker run -p 443:443 -p 443:443/udp -p 9443:9443/udp --rm -it imhang/kcp-shadowsocks-docker


or running as a service

    docker run -d --restart=always -e "SS_PORT=443" -e "SS_PASSWORD=<PASSWORD>" -e "SS_METHOD=chacha20" -e "SS_TIMEOUT=600" -e "KCP_PORT=9443" -e "KCP_MODE=fast" -e "MTU=1400" -e "SNDWND=1024" -e "RCVWND=1024" -p 443:443 -p 443:443/udp -p 9443:9443/udp --name ssserver imhang/kcp-shadowsocks-docker

### Default configuration in environment variables

    SS_PORT     443

    SS_PASSWORD <PASSWORD>

    SS_METHOD   chacha20

    SS_TIMEOUT  600

    KCP_PORT    9443

    KCP_MODE    fast

    MTU         1400

    SNDWND      1024

    RCVWND      1024
<commit_msg>add default parameters for client<commit_after># kcp-shadowsocks-docker

A docker image for shadowsocks server with KCPTUN support

### Download from Docker Hub 

    docker pull imhang/kcp-shadowsocks-docker

### Usage

    docker run -p 443:443 -p 443:443/udp -p 9443:9443/udp --rm -it imhang/kcp-shadowsocks-docker

or running as a service

    docker run -d --restart=always -e "SS_PORT=443" -e "SS_PASSWORD=<PASSWORD>" -e "SS_METHOD=chacha20" -e "SS_TIMEOUT=600" -e "KCP_PORT=9443" -e "KCP_MODE=fast" -e "MTU=1400" -e "SNDWND=1024" -e "RCVWND=1024" -p 443:443 -p 443:443/udp -p 9443:9443/udp --name ssserver imhang/kcp-shadowsocks-docker

### KCP Parameters for client

    --crypt none --mtu 1400 --sndwnd 1024 --rcvwnd 1024 --mode fast --nocomp

### Default configuration in environment variables

    SS_PORT     443

    SS_PASSWORD <PASSWORD>

    SS_METHOD   chacha20

    SS_TIMEOUT  600

    KCP_PORT    9443

    KCP_MODE    fast

    MTU         1400

    SNDWND      1024

    RCVWND      1024

{'fraction_non_alphanumeric': 0.10200845665961945, 'fraction_numerical': 0.09936575052854123, 'mean_word_length': 2.831983805668016, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6376094', 'n_tokens_mistral': 880, 'n_tokens_neox': 703, 'n_words': 197}