Skip to content

Commit

Permalink
adding http to http redirection to cloudfront default behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
caiocsgomes committed Dec 30, 2023
1 parent 4d8e1ce commit cb8b144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
}
}

viewer_protocol_policy = "allow-all"
viewer_protocol_policy = "redirect-to-https"
min_ttl = 0
default_ttl = 3600
max_ttl = 86400
Expand Down

0 comments on commit cb8b144

Please sign in to comment.