Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Dec 13, 2023
1 parent 9b35f19 commit e772ebd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions terraform/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,28 @@ resource "aws_cloudfront_cache_policy" "default" {
}
}

resource "aws_cloudfront_origin_request_policy" "default" {
name = "${local.namespace}-origin-request-policy"

cookies_config {
cookie_behavior = "all"
}

headers_config {
header_behavior = "allViewerAndWhitelistCloudFront"

headers {
items = [
"CloudFront-Forwarded-Proto",
]
}
}

query_strings_config {
query_string_behavior = "all"
}
}

resource "aws_cloudfront_origin_access_control" "oac" {
name = module.s3_public.id
description = ""
Expand Down

0 comments on commit e772ebd

Please sign in to comment.