Skip to content

Commit

Permalink
Deploy oonibackendproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Dec 6, 2024
1 parent 7d33f55 commit 6e99269
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tf/environments/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ module "ooni_th_droplet" {
"3d:81:99:17:b5:d1:20:a5:fe:2b:14:96:67:93:d6:34",
"f6:4b:8b:e2:0e:d2:97:c5:45:5c:07:a6:fe:54:60:0e"
]

dns_zone_ooni_io = local.dns_zone_ooni_io
}

Expand Down Expand Up @@ -515,7 +516,7 @@ module "ooniapi_oonifindings_deployer" {
module "ooniapi_oonifindings" {
source = "../../modules/ooniapi_service"

first_run = true
# first_run = true
vpc_id = module.network.vpc_id
public_subnet_ids = module.network.vpc_subnet_public[*].id
private_subnet_ids = module.network.vpc_subnet_private[*].id
Expand Down Expand Up @@ -563,7 +564,7 @@ module "ooniapi_ooniauth_deployer" {

module "ooniapi_ooniauth" {
source = "../../modules/ooniapi_service"
#first_run = true
# first_run = true

vpc_id = module.network.vpc_id
private_subnet_ids = module.network.vpc_subnet_private[*].id
Expand Down
7 changes: 7 additions & 0 deletions tf/modules/ooni_backendproxy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ resource "aws_security_group" "nginx_sg" {
cidr_blocks = var.private_subnet_cidr
}

ingress {
protocol = "tcp"
from_port = 80
to_port = 80
cidr_blocks = ["0.0.0.0/0"]
}

ingress {
protocol = "tcp"
from_port = 22
Expand Down
1 change: 1 addition & 0 deletions tf/modules/ooni_th_droplet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ resource "digitalocean_droplet" "ooni_th_docker" {

lifecycle {
create_before_destroy = true
ignore_changes = all
}
}
resource "aws_route53_record" "ooni_th" {
Expand Down

0 comments on commit 6e99269

Please sign in to comment.