更新 vpn/setup_server_ssl.sh
This commit is contained in:
parent
2ecc09c537
commit
af8274aa24
@ -15,10 +15,10 @@ CF_Email="$3"
|
||||
sudo apt update && sudo apt upgrade -y && sudo apt install vim wget curl net-tools socat -y
|
||||
|
||||
# 设置主机名
|
||||
sudo hostnamectl set-hostname "$DONAMEFRONT.randallanjie.net"
|
||||
sudo hostnamectl set-hostname "$DONAMEFRONT.randallanjie-proxy.win"
|
||||
|
||||
# 运行acme脚本安装acme
|
||||
curl https://get.acme.sh | sh -s email="$DONAMEFRONT@randallanjie.net"
|
||||
curl https://get.acme.sh | sh -s email="$DONAMEFRONT@randallanjie-proxy.win"
|
||||
|
||||
# 添加或更新环境变量到.acme.sh/acme.sh.env文件
|
||||
ENV_FILE="$HOME/.acme.sh/acme.sh.env"
|
||||
@ -32,6 +32,6 @@ export CF_Email="$CF_Email"
|
||||
# 设置acme并申请证书
|
||||
~/.acme.sh/acme.sh --upgrade --auto-upgrade
|
||||
~/.acme.sh/acme.sh --set-default-ca --server letsencrypt
|
||||
~/.acme.sh/acme.sh --issue -d "$DONAMEFRONT.randallanjie.net" -d "$DONAMEFRONT-cdn.randallanjie.net" --dns dns_cf --dnssleep
|
||||
~/.acme.sh/acme.sh --issue -d "$DONAMEFRONT.randallanjie-proxy.win" -d "$DONAMEFRONT-cdn.randallanjie-proxy.win" --dns dns_cf --dnssleep
|
||||
|
||||
echo "Setup complete for $DONAMEFRONT.randallanjie.net and $DONAMEFRONT-cdn.randallanjie.net"
|
||||
echo "Setup complete for $DONAMEFRONT.randallanjie-proxy.win and $DONAMEFRONT-cdn.randallanjie-proxy.win"
|
Loading…
Reference in New Issue
Block a user