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配置