Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ooni/devops
Browse files Browse the repository at this point in the history
* 'main' of github.com:ooni/devops:
  Rotate docker log files after 100MB (#108)
  Use same instance size on dev for ecs cluster
  • Loading branch information
hellais committed Oct 16, 2024
2 parents 91b90a7 + 5ae6fc0 commit 152034b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tf/environments/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ module "ooniapi_cluster" {

asg_min = 2
asg_max = 6
asg_desired = 3
asg_desired = 2

instance_type = "t3.micro"
instance_type = "t3a.medium"

tags = merge(
local.tags,
Expand Down Expand Up @@ -651,4 +651,4 @@ resource "aws_route53_record" "ooniapi_frontend_cert_validation" {
resource "aws_acm_certificate_validation" "ooniapi_frontend" {
certificate_arn = aws_acm_certificate.ooniapi_frontend.arn
validation_record_fqdns = [for record in aws_route53_record.ooniapi_frontend_cert_validation : record.fqdn]
}
}
4 changes: 3 additions & 1 deletion tf/modules/ooni_th_droplet/templates/cloud-init-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ write_files:
content: |
{
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"
"fixed-cidr-v6": "2001:db8:1::/64",
"log-driver": "json-file",
"log-opts": {"max-size": "100m", "max-file": "3"}
}
- path: /etc/nginx/sites-available/default
Expand Down

0 comments on commit 152034b

Please sign in to comment.