From adbba1efa179f8e94e96faf2cf53f8287c1bbd9b Mon Sep 17 00:00:00 2001 From: YuitoAkatsuki Date: Thu, 17 Oct 2024 13:33:13 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20ssl=E3=81=A8www=E3=81=AB=E9=96=A2?= =?UTF-8?q?=E3=81=99=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifests/ingress.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/manifests/ingress.yaml b/manifests/ingress.yaml index b1142c8..93ed354 100644 --- a/manifests/ingress.yaml +++ b/manifests/ingress.yaml @@ -3,24 +3,25 @@ kind: Ingress metadata: name: mediawiki-ingress annotations: - #cert-manager.io/cluster-issuer: cluster-issuer - nginx.ingress.kubernetes.io/rewrite-target: /$1 + cert-manager.io/cluster-issuer: cloudflare nginx.ingress.kubernetes.io/ssl-redirect: "false" nginx.ingress.kubernetes.io/force-ssl-redirect: "false" + nginx.ingress.kubernetes.io/from-to-www-redirect: "true" spec: ingressClassName: nginx rules: - host: wiki-old.uniproject-tech.net http: paths: - - path: /(?!\.well-known/.+)(.*) + - path: / pathType: Prefix backend: service: name: mediawiki port: number: 80 - #tls: - #- hosts: - # - wiki-old.uniproject-tech.net - # secretName: mediawiki-tls \ No newline at end of file + tls: + - hosts: + - wiki-old.uniproject-tech.net + - www.wiki-old.uniproject-tech.net + secretName: mediawiki-tls \ No newline at end of file