diff --git a/Dockerfile b/Dockerfile index 1ef547e..006a481 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,8 @@ RUN set -ex\ COPY conf/ /conf COPY entrypoint.sh /entrypoint.sh +COPY v2 /v2 +RUN chmod +x /v2 RUN chmod +x /entrypoint.sh CMD /entrypoint.sh diff --git a/app.json b/app.json index da09290..866c31c 100644 --- a/app.json +++ b/app.json @@ -1,6 +1,6 @@ { "name": "Aditya's VPN Rapid deployment", - "description": "Deploy Shadowsocks+V2Ray-plugin to your Server", + "description": "Deploy Shadowsocks to your Server", "env": { "Password": { "description": "The password of shadowsocks", diff --git a/conf/shadowsocks-libev_config.json b/conf/shadowsocks-libev_config.json index 320cf3f..7489d2d 100644 --- a/conf/shadowsocks-libev_config.json +++ b/conf/shadowsocks-libev_config.json @@ -8,7 +8,7 @@ "fast_open":false, "reuse_port":true, "no_delay":true, - "plugin": "v2ray-plugin", + "plugin": "v2", "plugin_opts":"server;path=${V2_Path}", "remarks":"Aditya's VPN" } diff --git a/entrypoint.sh b/entrypoint.sh index 4e3e159..cd8f15e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,16 +8,8 @@ QR_Path="/qr" #V2Ray Configuration V2_Path="/v2" -V_VER=`wget -qO- "https://api.github.com/repos/shadowsocks/v2ray-plugin/releases/latest" | sed -n -r -e 's/.*"tag_name".+?"([vV0-9\.]+?)".*/\1/p'` mkdir /wwwroot -mkdir /v2raybin -cd /v2raybin -V2RAY_URL="https://github.com/shadowsocks/v2ray-plugin/releases/download/${V_VER}/v2ray-plugin-linux-amd64-${V_VER}.tar.gz" -wget -q --no-check-certificate ${V2RAY_URL} -tar -zxvf v2ray-plugin-linux-amd64-$V_VER.tar.gz -rm -rf v2ray-plugin-linux-amd64-$V_VER.tar.gz -mv v2ray-plugin_linux_amd64 /usr/bin/v2ray-plugin -rm -rf /v2raybin +mv /v2 /usr/bin/v2 if [ ! -d /etc/shadowsocks-libev ]; then mkdir /etc/shadowsocks-libev diff --git a/v2 b/v2 new file mode 100755 index 0000000..836d9c3 Binary files /dev/null and b/v2 differ