feat(ingress): add traceworks.eu and www.traceworks.eu domains
- Add traceworks.eu domain support for European visitors - Add www.traceworks.eu subdomain - Include both domains in TLS certificate - Add Traefik custom headers for geo detection
This commit is contained in:
parent
ac8ea02a0e
commit
28007887d4
1 changed files with 24 additions and 0 deletions
|
|
@ -5,12 +5,16 @@ metadata:
|
||||||
namespace: traceworks
|
namespace: traceworks
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
# Add custom headers for geo detection
|
||||||
|
traefik.ingress.kubernetes.io/request-headers: "X-Forwarded-Host:{host},X-Country-Code:FR"
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- traceworks.in
|
- traceworks.in
|
||||||
- www.traceworks.in
|
- www.traceworks.in
|
||||||
|
- traceworks.eu
|
||||||
|
- www.traceworks.eu
|
||||||
secretName: traceworks-tls
|
secretName: traceworks-tls
|
||||||
rules:
|
rules:
|
||||||
- host: traceworks.in
|
- host: traceworks.in
|
||||||
|
|
@ -33,3 +37,23 @@ spec:
|
||||||
name: traceworks-frontend
|
name: traceworks-frontend
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
- host: traceworks.eu
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: traceworks-frontend
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
- host: www.traceworks.eu
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: traceworks-frontend
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue