From 58aa2c77bd52dda2aa9564ddb86bf55000a4e92f Mon Sep 17 00:00:00 2001 From: rohow Date: Wed, 16 Oct 2024 10:20:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(halo):=20=E5=A2=9E=E5=8A=A0=E5=8D=9A?= =?UTF-8?q?=E5=AE=A2=E7=9A=84www=E7=9A=84=E5=9F=9F=E5=90=8D=E4=B8=8E?= =?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/apps/halo/ingress-www.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 apps/apps/halo/ingress-www.yaml diff --git a/apps/apps/halo/ingress-www.yaml b/apps/apps/halo/ingress-www.yaml new file mode 100644 index 0000000..23f4607 --- /dev/null +++ b/apps/apps/halo/ingress-www.yaml @@ -0,0 +1,23 @@ +# 如果检测到www.dev.cm的请求,则重定向到dev.cm +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: halo-static + namespace: apps + annotations: + nginx.ingress.kubernetes.io/configuration-snippet: | + rewrite ^/(.*)$ https://dev.cm/$1 permanent; +spec: + ingressClassName: nginx + rules: + - host: www.dev.cm + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: halo + port: + number: 80 +