Skip to content

Commit

Permalink
JPERF-273 Use private jira node addresses in load balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrzaslewicz committed Sep 11, 2023
1 parent c4b80e0 commit 602488b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class LegacyAwsInfrastructure private constructor(
.withParameterValue(network.subnet.subnetId),
Parameter()
.withParameterKey("AccessCidr")
.withParameterValue("0.0.0.0/0")
.withParameterValue(network.vpc.cidrBlock)
),
aws = aws,
pollingTimeout = provisioningTimout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ApacheEc2LoadBalancerFormula : LoadBalancerFormula {
)
key.file.facilitateSsh(ssh.host.ipAddress)
val loadBalancer = ApacheProxyLoadBalancer.Builder(ssh)
.nodes(instances.map { URI("http://${it.publicIpAddress}:8080/") })
.nodes(instances.map { URI("http://${it.privateIpAddress}:8080/") })
.ipAddress(instance.publicIpAddress)
.build()
loadBalancer.provision()
Expand Down

0 comments on commit 602488b

Please sign in to comment.