Skip to content

Commit

Permalink
Merge pull request #20 from telekom-mms/issue_19
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelamattes authored Mar 14, 2024
2 parents 527df4c + 95f1383 commit 70ee5e4
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 127 deletions.
6 changes: 4 additions & 2 deletions examples/apply_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module "cdn" {
cdn_frontdoor_origin = {
non-backend = {
cdn_frontdoor_origin_group_id = module.cdn.cdn_frontdoor_origin_group["non-backend"].id
host_name = "0.0.0.0"
host_name = "127.0.0.0"
}
}
cdn_frontdoor_endpoint = {
Expand Down Expand Up @@ -65,7 +65,9 @@ module "cdn" {
order = 0
actions = {
url_redirect_action = {
destination_hostname = "www.telekom-mms.com"
leadingDomain = {
destination_hostname = "www.telekom-mms.com"
}
}
}
}
Expand Down
24 changes: 20 additions & 4 deletions examples/full_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,30 @@ module "cdn" {
order = 0
actions = {
url_redirect_action = {
destination_hostname = "www.telekom-mms.com"
leadingDomain = {
destination_hostname = "www.telekom-mms.com"
}
}
response_header_action = {
Content-Security-Policy = {
header_action = "Append"
header_name = "Content-Security-Policy"
value = "frame-ancestors 'self'"
}
X-Content-Type-Options = {
header_action = "Append"
header_name = "X-Content-Type-Options"
value = "nosniff"
}
}
}
conditions = {
request_header_condition = {
header_name = "Host"
match_values = ["telekom-mms.com"]
operator = "Equal"
Host = {
header_name = "Host"
match_values = ["telekom-mms.com"]
operator = "Equal"
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/min_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module "cdn" {
cdn_frontdoor_origin = {
non-backend = {
cdn_frontdoor_origin_group_id = module.cdn.cdn_frontdoor_origin_group["non-backend"].id
host_name = "0.0.0.0"
host_name = "127.0.0.0"
}
}
cdn_frontdoor_endpoint = {
Expand Down Expand Up @@ -70,7 +70,7 @@ module "cdn" {
cdn_frontdoor_rule_set_id = module.cdn.cdn_frontdoor_rule_set["nonbackend"].id
order = 0
actions = {
url_redirect_action = {
leadingDomain = {
destination_hostname = "www.telekom-mms.com"
}
}
Expand Down
Loading

0 comments on commit 70ee5e4

Please sign in to comment.