Commit 12763abd by e0d

Merge pull request #694 from edx/e0d/forums-fixes

Port fixes, removing hard codes.
parents 0280445e a33f00d8
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
"ForumServerPort":{ "ForumServerPort":{
"Description":"The TCP port for the Forum Server", "Description":"The TCP port for the Forum Server",
"Type":"Number", "Type":"Number",
"Default":"4567" "Default":"18080"
}, },
"CacheNodePort":{ "CacheNodePort":{
"Description":"The TCP port for the nodes in the Elasticache cluster", "Description":"The TCP port for the nodes in the Elasticache cluster",
...@@ -5174,13 +5174,6 @@ ...@@ -5174,13 +5174,6 @@
], ],
"Listeners":[ "Listeners":[
{ {
"LoadBalancerPort":"80",
"InstancePort":{
"Ref":"ForumServerPort"
},
"Protocol":"HTTP"
},
{
"LoadBalancerPort":"443", "LoadBalancerPort":"443",
"InstancePort":{ "InstancePort":{
"Ref":"ForumServerPort" "Ref":"ForumServerPort"
...@@ -5193,7 +5186,12 @@ ...@@ -5193,7 +5186,12 @@
} }
], ],
"HealthCheck":{ "HealthCheck":{
"Target":"TCP:80", "Target":{"Fn::Join":["",
["TCP:",
{"Ref":"ForumServerPort"}
]
]
},
"HealthyThreshold":"3", "HealthyThreshold":"3",
"UnhealthyThreshold":"5", "UnhealthyThreshold":"5",
"Interval":"30", "Interval":"30",
...@@ -5212,19 +5210,13 @@ ...@@ -5212,19 +5210,13 @@
"ForumELBSecurityGroup":{ "ForumELBSecurityGroup":{
"Type":"AWS::EC2::SecurityGroup", "Type":"AWS::EC2::SecurityGroup",
"Properties":{ "Properties":{
"GroupDescription":"Enable HTTP access on port 80", "GroupDescription":"Enable HTTPS access",
"VpcId":{ "VpcId":{
"Ref":"EdxVPC" "Ref":"EdxVPC"
}, },
"SecurityGroupIngress":[ "SecurityGroupIngress":[
{ {
"IpProtocol":"tcp", "IpProtocol":"tcp",
"FromPort":"80",
"ToPort":"80",
"CidrIp":"0.0.0.0/0"
},
{
"IpProtocol":"tcp",
"FromPort":"443", "FromPort":"443",
"ToPort":"443", "ToPort":"443",
"CidrIp":"0.0.0.0/0" "CidrIp":"0.0.0.0/0"
...@@ -5260,7 +5252,9 @@ ...@@ -5260,7 +5252,9 @@
"IpProtocol":"tcp", "IpProtocol":"tcp",
"FromPort": { "Ref": "ForumServerPort" }, "FromPort": { "Ref": "ForumServerPort" },
"ToPort": { "Ref": "ForumServerPort" }, "ToPort": { "Ref": "ForumServerPort" },
"CidrIp":"0.0.0.0/0" "SourceSecurityGroupId" : {
"Ref" : "ForumELBSecurityGroup"
}
} }
] ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment