Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-shri committed Aug 28, 2022
1 parent 78dc4f0 commit 27c64f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions conf/nginx_ss.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ server {
root /wwwroot;

location / {
return 403;
root /wwwroot;
index index.html;
}

location = ${QR_Path} {
root /wwwroot${QR_Path};
index index.html;
root /wwwroot
try_files $uri /vpn.png
}

location = ${V2_Path} {
Expand Down
5 changes: 2 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ cat /etc/nginx/conf.d/ss.conf
if [ "$Domain" = "no" ]; then
echo "Aditya's Personal VPN"
else
mkdir /wwwroot${QR_Path}
plugin=$(echo -n "v2ray;path=${V2_Path};host=${Domain};tls" | sed -e 's/\//%2F/g' -e 's/=/%3D/g' -e 's/;/%3B/g')
ss="ss://$(echo -n ${ENCRYPT}:${PASSWORD} | base64 -w 0)@${Domain}:443?plugin=${plugin}"
echo "${ss}" | tr -d '\n' > /wwwroot${QR_Path}/index.html
echo -n "${ss}" | qrencode -s 6 -o /wwwroot${QR_Path}/vpn.png
echo "${ss}" | tr -d '\n' > /wwwroot/index.html
echo -n "${ss}" | qrencode -s 6 -o /wwwroot/vpn.png
fi

ss-server -c /etc/shadowsocks-libev/config.json &
Expand Down

0 comments on commit 27c64f8

Please sign in to comment.