Last active
December 29, 2018 03:19
-
-
Save mosluce/0f7da032ee071095534d1836bd047885 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -sSL get.docker.com | sh - | |
git clone -b mujson https://github.com/mosluce/shadowsocksr | |
cd shadowsocksr | |
docker build -t ssr . | |
docker run -d --restart=always -p 6540-6550:6540-6550 --name ssr ssr | |
for (( i=1; i<=2; i++ )) | |
do | |
pwd=`date +%s | sha256sum | base64 | head -c 32 ; echo` | |
docker exec -it ssr python mujson_mgr.py -a -k $pwd -m none -O auth_chain_a -o http-simple -u $1$i -p 654$i | |
# docker exec -it ssr python mujson_mgr.py -a -k $pwd -O auth_chain_a -u $1$i -p 654$i | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment