From 0fa9c9c71c32677d96aa6fa1829bb2597977c887 Mon Sep 17 00:00:00 2001 From: milky0217 Date: Mon, 13 Jul 2026 18:36:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20nginx=20proxy=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=BB=8E=20/www/sites/.../proxy/root.conf=20?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20/etc/nginx/sites-enabled/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.sh | 4 ++-- scripts/switch-env.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common.sh b/lib/common.sh index 35e7b00..eafdcd7 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -110,9 +110,9 @@ check_service_file() { get_proxy_conf() { if [ "${APP_ENV}" = "development" ]; then - echo "/www/sites/dev.xmclassmate.top/proxy/root.conf" + echo "/etc/nginx/sites-enabled/dev.xmclassmate.top" else - echo "/www/sites/xmclassmate.top/proxy/root.conf" + echo "/etc/nginx/sites-enabled/xmclassmate.top" fi } diff --git a/scripts/switch-env.sh b/scripts/switch-env.sh index ca48295..f752dff 100755 --- a/scripts/switch-env.sh +++ b/scripts/switch-env.sh @@ -12,7 +12,7 @@ PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" ENV_FILE="$PROJECT_ROOT/.env" # ---------- 配置 ---------- -ROOT_CONF="/www/sites/xmclassmate.top/proxy/root.conf" +ROOT_CONF="/etc/nginx/sites-enabled/xmclassmate.top" NGINX_SSL_CONF="/www/sites/xmclassmate.top/ssl/fullchain.pem" SSH_HOST="deploy@47.109.203.92"