From b3dd0cb8565040945c07c43955f73d900a4f5974 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 15:29:26 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5=E5=8F=8D=E9=A6=88=C2=B7sed=E5=9F=9F=E5=90=8D=E6=B3=A8?= =?UTF-8?q?=E5=85=A5=E6=B8=85=E7=90=86=C2=B7=E6=B3=A8=E9=87=8A=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/670bb44d-34f7-4bc3-a351-5e985c1f05dc Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- .github/workflows/deploy-to-zhuyuan-server.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-to-zhuyuan-server.yml b/.github/workflows/deploy-to-zhuyuan-server.yml index 48b4c679..224a9b13 100644 --- a/.github/workflows/deploy-to-zhuyuan-server.yml +++ b/.github/workflows/deploy-to-zhuyuan-server.yml @@ -159,13 +159,14 @@ jobs: echo "✅ 主域名已注入: $ZY_DOMAIN_MAIN" else echo "⚠️ ZY_DOMAIN_MAIN 未配置,使用IP访问" - sed -i "s/ZY_DOMAIN_MAIN_PLACEHOLDER //g" /tmp/zhuyuan-sovereign.conf + sed -i "s/ZY_DOMAIN_MAIN_PLACEHOLDER//g" /tmp/zhuyuan-sovereign.conf fi if [ -n "$ZY_DOMAIN_PREVIEW" ]; then sed -i "s/ZY_DOMAIN_PREVIEW_PLACEHOLDER/$ZY_DOMAIN_PREVIEW/g" /tmp/zhuyuan-sovereign.conf echo "✅ 预览域名已注入: $ZY_DOMAIN_PREVIEW" else - echo "⚠️ ZY_DOMAIN_PREVIEW 未配置,预览站暂不启用域名" + echo "⚠️ ZY_DOMAIN_PREVIEW 未配置,预览站使用默认server_name" + # Nginx中 _ 是标准的catch-all server_name,不匹配任何实际域名 sed -i "s/ZY_DOMAIN_PREVIEW_PLACEHOLDER/_/g" /tmp/zhuyuan-sovereign.conf fi scp -i ~/.ssh/zy_key \