Skip to content

Commit

Permalink
Add a redirect for www domain in production
Browse files Browse the repository at this point in the history
  • Loading branch information
johnake committed Feb 20, 2024
1 parent fd04fca commit ad85759
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@
"check-the-childrens-barred-list.education.gov.uk": {
"front_door_name": "s189p01-ccbl-edu-domains-fd",
"resource_group_name": "s189p01-ccbldomains-rg",
"domains": ["apex"],
"domains": ["apex", "www"],
"cached_paths": ["/assets/*"],
"environment_short": "pd",
"origin_hostname": "check-childrens-barred-list-production.teacherservices.cloud",
"null_host_header": true,
"cnames": {}
"cnames": {},
"redirect_rules": [
{
"from-domain": "www",
"to-domain": "check-the-childrens-barred-list.education.gov.uk"
}
]
}
}
}
1 change: 1 addition & 0 deletions terraform/custom_domains/environment_domains/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module "domains" {
host_name = each.value.origin_hostname
null_host_header = try(each.value.null_host_header, false)
cached_paths = try(each.value.cached_paths, [])
redirect_rules = try(each.value.redirect_rules, [])
}

# Takes values from hosted_zone.domain_name.cnames (or txt_records, a-records). Use for domains which are not associated with front door.
Expand Down

0 comments on commit ad85759

Please sign in to comment.