Skip to content

Commit

Permalink
add port 80 redirect to HTTPS on planetfm ALB
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman committed Dec 7, 2023
1 parent 0e3145a commit 398e75c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions terraform/environments/planetfm/locals_preproduction.tf
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,18 @@ locals {
}
}
listeners = {
http = {
port = 80
protocol = "HTTP"
default_action = {
type = "redirect"
redirect = {
port = 443
protocol = "HTTPS"
status_code = "HTTP_301"
}
}
}
https = {
port = 443
protocol = "HTTPS"
Expand Down

0 comments on commit 398e75c

Please sign in to comment.