Skip to content

Commit 0dce2bc

Browse files
authored
Merge pull request #320 from sil-org/both-ports
change the container definitions to listen on both 80 and 443
2 parents f4392f1 + 2ba7ebf commit 0dce2bc

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

modules/040-id-broker/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ locals {
174174
password_mfa_lifespan_extension = var.password_mfa_lifespan_extension
175175
password_profile_url = var.password_profile_url
176176
password_reuse_limit = var.password_reuse_limit
177-
port = var.enable_tls ? "443" : "80"
178177
profile_review_interval = var.profile_review_interval
179178
run_task = ""
180179
send_get_backup_codes_emails = var.send_get_backup_codes_emails

modules/040-id-broker/task-definition.json.tftpl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
"dnsSearchDomains": null,
88
"portMappings": [
99
{
10-
"hostPort": 0,
11-
"containerPort": ${port},
10+
"containerPort": 80,
11+
"protocol": "tcp"
12+
},
13+
{
14+
"containerPort": 443,
1215
"protocol": "tcp"
1316
}
1417
],

modules/050-pw-manager/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ locals {
106106
password_rule_maxlength = var.password_rule_maxlength
107107
password_rule_minlength = var.password_rule_minlength
108108
password_rule_minscore = var.password_rule_minscore
109-
port = var.enable_tls ? "443" : "80"
110109
recaptcha_secret_key = var.recaptcha_secret
111110
recaptcha_site_key = var.recaptcha_key
112111
sentry_dsn = var.sentry_dsn

modules/050-pw-manager/task-definition-api.json.tftpl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
"dnsSearchDomains": null,
99
"portMappings": [
1010
{
11-
"hostPort": 0,
12-
"containerPort": ${port},
11+
"containerPort": 80,
12+
"protocol": "tcp"
13+
},
14+
{
15+
"containerPort": 443,
1316
"protocol": "tcp"
1417
}
1518
],

modules/060-simplesamlphp/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ locals {
9898
mysql_password = var.mysql_pass
9999
mysql_user = var.mysql_user
100100
parameter_store_path = local.parameter_store_path
101-
port = var.enable_tls ? "443" : "80"
102101
profile_url = var.profile_url
103102
recaptcha_key = var.recaptcha_key
104103
recaptcha_secret = var.recaptcha_secret

modules/060-simplesamlphp/task-definition.json.tftpl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
"dnsSearchDomains": null,
99
"portMappings": [
1010
{
11-
"hostPort": 0,
12-
"containerPort": ${port},
11+
"containerPort": 80,
12+
"protocol": "tcp"
13+
},
14+
{
15+
"containerPort": 443,
1316
"protocol": "tcp"
1417
}
1518
],

0 commit comments

Comments
 (0)