Skip to content

Commit

Permalink
Update ingress.tpl.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Oct 31, 2024
1 parent 4a87abf commit e472bce
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions deploy/production/ingress.tpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
annotations:
external-dns.alpha.kubernetes.io/set-identifier: intranet-production-ingress-intranet-production-green
external-dns.alpha.kubernetes.io/aws-weight: "100"
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: basic-auth-secret
nginx.ingress.kubernetes.io/auth-realm: 'Production Access | Authentication Required'
nginx.ingress.kubernetes.io/enable-modsecurity: "true"
nginx.ingress.kubernetes.io/modsecurity-snippet: |
${MODSEC_CONFIG}
# Set vhost so that WP doesn't see prod-intranet.apps... and redirect.
nginx.ingress.kubernetes.io/upstream-vhost: intranet.justice.gov.uk
nginx.ingress.kubernetes.io/server-snippet: |
Expand All @@ -24,9 +24,13 @@ metadata:
return 301 https://raw.githubusercontent.com/ministryofjustice/security-guidance/main/contact/vulnerability-disclosure-security.txt;
}
spec:
ingressClassName: modsec
tls:
- hosts:
- prod-intranet.apps.live.cloud-platform.service.justice.gov.uk
- hosts:
- intranet.justice.gov.uk
secretName: intranet-production-cert-secret
rules:
- host: prod-intranet.apps.live.cloud-platform.service.justice.gov.uk
http:
Expand All @@ -38,3 +42,13 @@ spec:
name: nginx-service
port:
number: 8080
- host: intranet.justice.gov.uk
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nginx-service
port:
number: 8080

0 comments on commit e472bce

Please sign in to comment.