Skip to content
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