Skip to content

Commit

Permalink
Merge pull request #310 from DFE-Digital/2074-document-ingress-host-h…
Browse files Browse the repository at this point in the history
…eader-behaviour

[2074] Document ingress controller HTTP Host header behaviour
  • Loading branch information
saliceti authored Nov 1, 2024
2 parents 4bad1a5 + 98b20c2 commit 115574f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster/terraform_kubernetes/ingress_controller.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ resource "helm_release" "ingress-nginx" {
type = "string"
}

# Send x-forwarded-for HTTP header to keep the client IP for the apps
# Send X-Forwarded-For HTTP header to keep the client IP for the apps
# When used behind front door, it contains the front door backend IP as well
# The Host header is replaced by the value of X-Forwarded-Host header. When using front door,
# apps will see the external host instead of the ingress host
set {
name = "controller.config.use-forwarded-headers"
value = "true"
Expand Down

0 comments on commit 115574f

Please sign in to comment.