Skip to content

Commit

Permalink
Merge pull request #618 from Elao/redirect_to_www
Browse files Browse the repository at this point in the history
Redirect website to www
  • Loading branch information
greedybro committed Jun 10, 2024
2 parents 391dcb8 + d77f13c commit 41cdb69
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions kubernetes/charts/website/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ metadata:
{{- include "labels" . | nindent 4 }}
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- www.elao.com
secretName: www.elao.com.tls
- hosts:
- blog.elao.com
secretName: blog.elao.com.tls
rules:
# Proxied to redirectionio service
- host: www.elao.com
Expand All @@ -29,6 +27,24 @@ spec:
name: redirectionio-service
port:
number: 8080

---

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "fullname" . }}-blog-ingress
labels:
{{- include "labels" . | nindent 4 }}
annotations:
cert-manager.io/cluster-issuer: letsencrypt
spec:
ingressClassName: nginx
tls:
- hosts:
- blog.elao.com
secretName: blog.elao.com.tls
rules:
# Proxied to redirectionio service
- host: blog.elao.com
http:
Expand Down

0 comments on commit 41cdb69

Please sign in to comment.