Skip to content

Commit

Permalink
chore: sslとwwwに関する問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed Oct 17, 2024
1 parent db45754 commit adbba1e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions manifests/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
tls:
- hosts:
- wiki-old.uniproject-tech.net
- www.wiki-old.uniproject-tech.net
secretName: mediawiki-tls

0 comments on commit adbba1e

Please sign in to comment.