[routing] fix health check rules
This commit is contained in:
parent
f6ec1307dc
commit
0ce4e61a48
|
@ -29,9 +29,9 @@ resource "aws_elb" "explorer" {
|
|||
health_check {
|
||||
healthy_threshold = 2
|
||||
unhealthy_threshold = 2
|
||||
timeout = 3
|
||||
timeout = 15
|
||||
interval = 30
|
||||
target = "HTTP:4000/"
|
||||
target = "HTTP:4000/en/blocks"
|
||||
}
|
||||
|
||||
listener {
|
||||
|
|
|
@ -152,6 +152,13 @@ resource "aws_security_group" "elb" {
|
|||
protocol = "tcp"
|
||||
cidr_blocks = ["0.0.0.0/0"]
|
||||
}
|
||||
|
||||
ingress {
|
||||
from_port = 4000
|
||||
to_port = 4000
|
||||
protocol = "tcp"
|
||||
cidr_blocks = ["0.0.0.0/0"]
|
||||
}
|
||||
|
||||
# HTTPS from anywhere
|
||||
ingress {
|
||||
|
@ -187,6 +194,13 @@ resource "aws_security_group" "app" {
|
|||
protocol = "tcp"
|
||||
cidr_blocks = ["${var.vpc_cidr}"]
|
||||
}
|
||||
|
||||
ingress {
|
||||
from_port = 4000
|
||||
to_port = 4000
|
||||
protocol = "tcp"
|
||||
cidr_blocks = ["${var.vpc_cidr}"]
|
||||
}
|
||||
|
||||
# HTTPS from the VPC
|
||||
ingress {
|
||||
|
|
Loading…
Reference in New Issue