Skip to content

Commit

Permalink
feat: add oonimeasurements target for frontend loadbalancer
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Aug 14, 2024
1 parent e834fad commit 940b2a4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tf/modules/ooniapi_frontend/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,22 @@ resource "aws_lb_listener_rule" "ooniapi_oonifindings_rule" {
}
}

resource "aws_lb_listener_rule" "ooniapi_oonifindings_rule" {
listener_arn = aws_alb_listener.ooniapi_listener_https.arn
priority = 103

action {
type = "forward"
target_group_arn = var.ooniapi_measurements_target_group_arn
}

condition {
path_pattern {
values = ["/api/v1/incidents/*"]
}
}
}

## DNS

resource "aws_route53_record" "ooniapi" {
Expand Down

0 comments on commit 940b2a4

Please sign in to comment.