diff --git a/vpn/setup_server_ssl.sh b/vpn/setup_server_ssl.sh index 93b7c34..4e4ce19 100644 --- a/vpn/setup_server_ssl.sh +++ b/vpn/setup_server_ssl.sh @@ -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" \ No newline at end of file +echo "Setup complete for $DONAMEFRONT.randallanjie-proxy.win and $DONAMEFRONT-cdn.randallanjie-proxy.win" \ No newline at end of file