From efb6841382604559731fe25b46a3f19ae6341068 Mon Sep 17 00:00:00 2001 From: rohow Date: Mon, 23 Sep 2024 18:10:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(cdn):=20=E4=BF=AE=E5=A4=8D=E8=B7=A8?= =?UTF-8?q?=E5=9F=9F=E8=AF=B7=E6=B1=82=E5=A4=B4=20&=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=BB=98=E8=AE=A4cdn=E7=BC=93=E5=AD=98key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/apps/halo/ingress-static.yaml | 2 +- apps/infra/net/nginx/helmchart.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/apps/halo/ingress-static.yaml b/apps/apps/halo/ingress-static.yaml index 0e26a03..36becb9 100644 --- a/apps/apps/halo/ingress-static.yaml +++ b/apps/apps/halo/ingress-static.yaml @@ -40,7 +40,7 @@ metadata: nginx.ingress.kubernetes.io/rewrite-target: /$2 # 添加允许跨域请求 nginx.ingress.kubernetes.io/enable-cors: "true" - nginx.ingress.kubernetes.io/cors-allow-origin: "https://dev.cm" + 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/apps/infra/net/nginx/helmchart.yaml b/apps/infra/net/nginx/helmchart.yaml index 26ac7df..e4d834a 100644 --- a/apps/infra/net/nginx/helmchart.yaml +++ b/apps/infra/net/nginx/helmchart.yaml @@ -37,7 +37,7 @@ spec: # 缓存配置 http-snippet: | proxy_cache_path /tmp/nginx-cache levels=1:2 keys_zone=cache:2m max_size=100m inactive=7d use_temp_path=off; - proxy_cache_key $scheme$proxy_host$request_uri; + proxy_cache_key $uri$is_args$args; proxy_cache_lock on; proxy_cache_use_stale updating; # dns配置