Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新输入申请邮箱。 #9

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
- 回落使用nginx,配置wordpress

## install.sh使用
bash <(curl -Ls https://raw.githubusercontent.com/atrandys/xray/main/install.sh)
bash <(curl -Ls https://raw.githubusercontent.com/kepy909/xray-1/main/install.sh)

## install_wp.sh使用
bash <(curl -Ls https://raw.githubusercontent.com/atrandys/xray/main/install_wp.sh)
bash <(curl -Ls https://raw.githubusercontent.com/kepy909/xray-1/main/install_wp.sh)

## client使用
- OpenWrt
Expand Down
8 changes: 6 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ EOF
systemctl restart nginx.service
green "$(date +"%Y-%m-%d %H:%M:%S") - 使用acme.sh申请https证书."
curl https://get.acme.sh | sh
blue "输入证书申请邮箱:"
read your_email
~/.acme.sh/acme.sh --register-account -m $your_email
~/.acme.sh/acme.sh --issue -d $your_domain --webroot /usr/share/nginx/html/
if test -s /root/.acme.sh/$your_domain/fullchain.cer; then
green "$(date +"%Y-%m-%d %H:%M:%S") - 申请https证书成功."
Expand Down Expand Up @@ -315,8 +318,8 @@ cat > /usr/local/etc/xray/client.json<<-EOF
EOF
if [ -d "/usr/share/nginx/html/" ]; then
cd /usr/share/nginx/html/ && rm -f ./*
wget https://github.com/atrandys/trojan/raw/master/fakesite.zip
unzip -o fakesite.zip
wget https://github.com/HFIProgramming/mikutap/archive/refs/tags/2.0.0.zip
unzip -o mikutap-2.0.0.zip
fi
systemctl enable xray.service
sed -i "s/User=nobody/User=root/;" /etc/systemd/system/xray.service
Expand All @@ -339,6 +342,7 @@ id:${v2uuid}
底层传输:xtls
跳过证书验证:false
}
导入链接:vless://${v2uuid}@${your_domain}:443?security=xtls&flow=xtls-rprx-direct#XTLS-${your_domain}-{$real_addr}
EOF

green "== 安装完成."
Expand Down