Skip to content

Commit

Permalink
Railway V2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-shri committed Sep 17, 2022
1 parent 4447eb1 commit 5a36aa6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion conf/shadowsocks-libev_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
10 changes: 1 addition & 9 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added v2
Binary file not shown.

0 comments on commit 5a36aa6

Please sign in to comment.