Skip to content

Commit

Permalink
feat: ipv6 support in ooni-backendproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Jun 5, 2024
1 parent c50520d commit 62cd820
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tf/modules/ooni_backendproxy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "aws_security_group" "nginx_sg" {
to_port = 22
cidr_blocks = ["0.0.0.0/0"]
}

egress {
from_port = 0
to_port = 0
Expand All @@ -33,6 +33,13 @@ resource "aws_security_group" "nginx_sg" {
"0.0.0.0/0",
]
}

egress {
from_port = 0
to_port = 0
protocol = "-1"
ipv6_cidr_blocks = ["::/0"]
}

lifecycle {
create_before_destroy = true
Expand Down
2 changes: 2 additions & 0 deletions tf/modules/ooni_backendproxy/templates/setup-backend-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ server {
proxy_http_version 1.1;
proxy_set_header Host \$host;
}
error_log /var/log/nginx/error.log;
}
EOF
sudo mv $tmpfile /etc/nginx/sites-available/default
Expand Down

0 comments on commit 62cd820

Please sign in to comment.