Skip to content

Commit

Permalink
[LAB-425] setting up https (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
alabdao committed Aug 8, 2023
1 parent 6bd0fe7 commit e9c9256
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions infrastructure/terraform/staging/acm.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "aws_acm_certificate" "wildcard_labdao" {
domain_name = "bacalhau.${var.environment}.${var.domain}"
subject_alternative_names = ["*.${var.environment}.${var.domain}"]
validation_method = "DNS"
}
6 changes: 6 additions & 0 deletions infrastructure/terraform/staging/lb_public.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ resource "aws_lb_listener" "labdao_public_1234" {
port = "1234"
protocol = "HTTP"

# protocol = "HTTPS"
# certificate_arn = aws_acm_certificate.wildcard_labdao.arn

# default forward to Bacalhau API TG
default_action {
target_group_arn = aws_lb_target_group.labdao_requester_bacalhau_tg.arn
Expand All @@ -27,6 +30,9 @@ resource "aws_lb_listener" "labdao_public_5001" {
port = "5001"
protocol = "HTTP"

# protocol = "HTTPS"
# certificate_arn = aws_acm_certificate.wildcard_labdao.arn

# default forward to IPFS API TG
default_action {
target_group_arn = aws_lb_target_group.labdao_ipfs_tg.arn
Expand Down
5 changes: 5 additions & 0 deletions infrastructure/terraform/staging/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ variable "availability_zones" {
type = list(string)
default = ["us-east-1c", "us-east-1d"]
}

variable "domain" {
type = string
default = "labdao.xyz"
}

0 comments on commit e9c9256

Please sign in to comment.