From 1eae31866ba4d6f2d4fb101cbb9157250fc25000 Mon Sep 17 00:00:00 2001 From: rohow Date: Mon, 23 Sep 2024 14:54:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(cdn):=20=E6=96=B0=E5=A2=9E=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E8=B7=A8=E5=9F=9F=E8=AF=B7=E6=B1=82=E5=A4=B4=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/apps/halo/ingress-static.yaml | 3 +++ install/agent.config.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/apps/halo/ingress-static.yaml b/apps/apps/halo/ingress-static.yaml index 92d9169..36becb9 100644 --- a/apps/apps/halo/ingress-static.yaml +++ b/apps/apps/halo/ingress-static.yaml @@ -38,6 +38,9 @@ metadata: annotations: nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/rewrite-target: /$2 + # 添加允许跨域请求 + nginx.ingress.kubernetes.io/enable-cors: "true" + nginx.ingress.kubernetes.io/cors-allow-origin: "https://dev.cm, https://*.dev.cm, https://fillcode.cm, https://*.fillcode.cm" spec: ingressClassName: nginx rules: diff --git a/install/agent.config.yaml b/install/agent.config.yaml index 57e67c2..a4d959f 100644 --- a/install/agent.config.yaml +++ b/install/agent.config.yaml @@ -5,7 +5,7 @@ token: "K1010dd6f0853e824cfaf417117f31a0d797a738aa2d4b9d01cd5972a9b084c81a0::ser # 网络相关 # WARN 阿里云、华为云因使用100网段作为dns等内部服务 需要关闭netfilter 否则会自动添加iptables规则导致无法访问dns # WARN 需要添加 extraArgs=--netfilter-mode=off -vpn-auth: "name=tailscale,joinKey=tskey-auth-kGPKhWTTQN11CNTRL-V3zxxhg5B9iwHut6guHw8iTrpHfwrwZ7" +vpn-auth: "name=tailscale,joinKey=tskey-auth-kL5a5DJ1DC11CNTRL-RJxsNknCy1CTiqJCsAFs1C3ZU8DAvFjR,extraArgs=--netfilter-mode=off" # 节点相关 # 保留节点资源 根据节点做不同配置