From e58d4d0aca2213e79f0a1b0c5169ab61c633218c Mon Sep 17 00:00:00 2001 From: kittors Date: Wed, 19 Aug 2026 13:25:30 +0800 Subject: [PATCH] chore: remove production host details from public sources Keep landing fallbacks, tests, and workflows on example.com / documentation IPs so the live relay host is not in this public repo. --- .github/workflows/deploy.yml | 2 +- .github/workflows/issue-triage.yml | 2 +- .github/workflows/pr-review.yml | 2 +- pages/api-key-lookup/components/landing/landingCopy.ts | 2 +- pages/ip-access/ProtectionPolicyTab.tsx | 2 +- pages/ip-access/__tests__/AccessRulesTab.test.tsx | 4 ++-- scripts/issue_triage_agent.py | 2 +- scripts/pr_review_agent.py | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e54a6eb3..c9752e2d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,7 +31,7 @@ jobs: timeout-minutes: 15 env: PANEL_RELEASE: ${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} - PUBLIC_PANEL_BASE: ${{ vars.RELAY_PUBLIC_PANEL_BASE || 'https://relay.07230805.xyz' }} + PUBLIC_PANEL_BASE: ${{ secrets.RELAY_PUBLIC_PANEL_BASE || vars.RELAY_PUBLIC_PANEL_BASE }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index 81b0ad82..1b43809c 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -34,7 +34,7 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL || vars.OPENAI_BASE_URL || 'https://relay.07230805.xyz/v1' }} + OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL || vars.OPENAI_BASE_URL }} OPENAI_MODEL: ${{ secrets.OPENAI_MODEL || vars.OPENAI_MODEL || 'grok-4.5' }} TRIAGE_ISSUE_NUMBER: ${{ github.event.inputs.issue_number || '' }} # Auto-comment on newly opened issues (not on every edit) unless bot:quiet. diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml index 948c2621..a84e3dc3 100644 --- a/.github/workflows/pr-review.yml +++ b/.github/workflows/pr-review.yml @@ -36,7 +36,7 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL || vars.OPENAI_BASE_URL || 'https://relay.07230805.xyz/v1' }} + OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL || vars.OPENAI_BASE_URL }} OPENAI_MODEL: ${{ secrets.OPENAI_MODEL || vars.OPENAI_MODEL || 'grok-4.5' }} REVIEW_PR_NUMBER: ${{ github.event.inputs.pr_number || '' }} steps: diff --git a/pages/api-key-lookup/components/landing/landingCopy.ts b/pages/api-key-lookup/components/landing/landingCopy.ts index 0e75ab45..8315a41d 100644 --- a/pages/api-key-lookup/components/landing/landingCopy.ts +++ b/pages/api-key-lookup/components/landing/landingCopy.ts @@ -58,7 +58,7 @@ export interface LandingCopy { /** 部署域名即 API 根地址;SSR / 测试环境下退回到线上默认值,保证文案永远可读。 */ export function resolveApiBaseUrl(): string { if (typeof window === "undefined" || !window.location?.origin) { - return "https://relay.07230805.xyz/v1"; + return "https://relay.example.com/v1"; } return `${window.location.origin}/v1`; } diff --git a/pages/ip-access/ProtectionPolicyTab.tsx b/pages/ip-access/ProtectionPolicyTab.tsx index 65e0bc53..696a650f 100644 --- a/pages/ip-access/ProtectionPolicyTab.tsx +++ b/pages/ip-access/ProtectionPolicyTab.tsx @@ -162,7 +162,7 @@ export function ProtectionPolicyTab({ status, onPolicySaved }: ProtectionPolicyT setProxyDraft(""); } }} - placeholder="104.194.69.137 / 10.0.0.0/24" + placeholder="203.0.113.10 / 10.0.0.0/24" size="sm" className="font-mono" /> diff --git a/pages/ip-access/__tests__/AccessRulesTab.test.tsx b/pages/ip-access/__tests__/AccessRulesTab.test.tsx index 470bb1c7..1f529078 100644 --- a/pages/ip-access/__tests__/AccessRulesTab.test.tsx +++ b/pages/ip-access/__tests__/AccessRulesTab.test.tsx @@ -151,11 +151,11 @@ describe("AccessRulesTab", () => { test("protected addresses are listed so a refused ban is explainable", async () => { renderTab({ protectedEntries: [ - { cidr: "104.194.69.137/32", reason: "trusted_proxy" }, + { cidr: "203.0.113.10/32", reason: "trusted_proxy" }, { cidr: "10.0.0.5/32", reason: "local_address" }, ], }); - expect(await screen.findByText("104.194.69.137/32")).toBeInTheDocument(); + expect(await screen.findByText("203.0.113.10/32")).toBeInTheDocument(); expect(screen.getByText("10.0.0.5/32")).toBeInTheDocument(); }); }); diff --git a/scripts/issue_triage_agent.py b/scripts/issue_triage_agent.py index e86ccd20..e2a3c487 100644 --- a/scripts/issue_triage_agent.py +++ b/scripts/issue_triage_agent.py @@ -463,7 +463,7 @@ def call_model(system, user_payload): api_key = os.environ.get("OPENAI_API_KEY") if not api_key: raise RuntimeError("OPENAI_API_KEY is not set") - base_url = os.environ.get("OPENAI_BASE_URL", "https://relay.07230805.xyz/v1").rstrip("/") + base_url = os.environ.get("OPENAI_BASE_URL", "https://relay.example.com/v1").rstrip("/") model = os.environ.get("OPENAI_MODEL", "grok-4.5") data = { "model": model, diff --git a/scripts/pr_review_agent.py b/scripts/pr_review_agent.py index 254c425c..39c3ca03 100644 --- a/scripts/pr_review_agent.py +++ b/scripts/pr_review_agent.py @@ -180,7 +180,7 @@ def call_model(system: str, user_payload: str, max_tokens: int = 3500) -> str: api_key = os.environ.get("OPENAI_API_KEY") if not api_key: raise RuntimeError("OPENAI_API_KEY is not set") - base_url = os.environ.get("OPENAI_BASE_URL", "https://relay.07230805.xyz/v1").rstrip("/") + base_url = os.environ.get("OPENAI_BASE_URL", "https://relay.example.com/v1").rstrip("/") model = os.environ.get("OPENAI_MODEL", "grok-4.5") data = { "model": model,