Skip to content

Commit

Permalink
Add $ENV to www.$ENV redirect synthetic response for DGU
Browse files Browse the repository at this point in the history
  • Loading branch information
AgaDufrat committed Jan 26, 2024
1 parent 005a0f0 commit a9c5893
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/datagovuk/service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ resource "fastly_service_vcl" "service" {
response_condition = "${local.template_values["environment"]}.data.gov.uk to www.${local.template_values["environment"]}.data.gov.uk redirect response condition"
}

response_object {
name = "${local.template_values["environment"]}.data.gov.uk to www.${local.template_values["environment"]}.data.gov.uk redirect synthetic response"
status = 301
request_condition = "${local.template_values["environment"]}.data.gov.uk to www.${local.template_values["environment"]}.data.gov.uk redirect request condition"
}

request_setting {
name = "Force TLS"
force_ssl = true
Expand Down

0 comments on commit a9c5893

Please sign in to comment.