From af8274aa240a7add58ec622a41c656c341f5f75f Mon Sep 17 00:00:00 2001 From: Randall Date: Fri, 6 Dec 2024 15:41:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20vpn/setup=5Fserver=5Fssl.s?= =?UTF-8?q?h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vpn/setup_server_ssl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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