Skip to content

Update trojan_centos7.sh #31

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 5 additions & 1 deletion trojan_centos7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ if [ "$CHECK" == "SELINUX=permissive" ]; then
fi
yum -y install bind-utils wget unzip zip curl tar
green "======================="
yellow "请输入申请https证书的邮箱"
green "======================="
read your_email
green "======================="
yellow "请输入绑定到本VPS的域名"
green "======================="
read your_domain
Expand All @@ -67,7 +71,7 @@ if [ $real_addr == $local_addr ] ; then
systemctl restart nginx.service
#申请https证书
mkdir /usr/src/trojan-cert
curl https://get.acme.sh | sh
curl https://get.acme.sh | sh -e $your_email
~/.acme.sh/acme.sh --issue -d $your_domain --webroot /usr/share/nginx/html/
~/.acme.sh/acme.sh --installcert -d $your_domain \
--key-file /usr/src/trojan-cert/private.key \
Expand Down