Skip to content

Commit

Permalink
Tribunals: Delete maintenance page (#9101)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-k1998 authored Dec 16, 2024
1 parent 6c55244 commit 17ae4f2
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions terraform/environments/tribunals/load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,39 +157,39 @@ resource "aws_lb_listener_rule" "tribunals_lb_rule" {
}

# Maintenance page - uncomment whenever a maintenance page is needed
resource "aws_lb_listener_rule" "maintenance_page" {
listener_arn = aws_lb_listener.tribunals_lb.arn
priority = 1

action {
type = "fixed-response"
fixed_response {
content_type = "text/html"
message_body = <<EOF
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Maintenance - We'll be back soon</title>
</head>
<body style="font-family:Arial,sans-serif;text-align:center;padding:40px;max-width:600px;margin:0 auto">
<div style="background:#fff;padding:20px;border-radius:10px">
<div style="font-size:48px">🔧</div>
<h1>We'll be back soon!</h1>
<p>We are currently performing scheduled maintenance to improve our services. We apologize for any inconvenience.</p>
<p>Please check back shortly. Thank you for your patience.</p>
</div>
</body>
</html>
EOF
status_code = "503"
}
}

condition {
host_header {
values = ["*.*"]
}
}
}
# resource "aws_lb_listener_rule" "maintenance_page" {
# listener_arn = aws_lb_listener.tribunals_lb.arn
# priority = 1

# action {
# type = "fixed-response"
# fixed_response {
# content_type = "text/html"
# message_body = <<EOF
# <!DOCTYPE html>
# <html lang="en">
# <head>
# <meta charset="UTF-8">
# <meta name="viewport" content="width=device-width, initial-scale=1.0">
# <title>Maintenance - We'll be back soon</title>
# </head>
# <body style="font-family:Arial,sans-serif;text-align:center;padding:40px;max-width:600px;margin:0 auto">
# <div style="background:#fff;padding:20px;border-radius:10px">
# <div style="font-size:48px">🔧</div>
# <h1>We'll be back soon!</h1>
# <p>We are currently performing scheduled maintenance to improve our services. We apologize for any inconvenience.</p>
# <p>Please check back shortly. Thank you for your patience.</p>
# </div>
# </body>
# </html>
# EOF
# status_code = "503"
# }
# }

# condition {
# host_header {
# values = ["*.*"]
# }
# }
# }

0 comments on commit 17ae4f2

Please sign in to comment.