Skip to content

Commit

Permalink
Add IPv6 support to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Sep 25, 2024
1 parent e39466f commit 5cd2360
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tf/modules/ooni_th_droplet/templates/cloud-init-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ write_files:
AcceptEnv LANG LC_*
AllowUsers deployer
- path: /etc/docker/daemon.json
content: |
{
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"
}

- path: /etc/nginx/sites-available/default
content: |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=thcache:100M
Expand Down Expand Up @@ -155,6 +162,7 @@ write_files:
runcmd:
- sshd -t
- systemctl restart sshd
- systemctl restart docker
- ufw default deny incoming
- ufw default allow outgoing
- ufw allow 22/tcp
Expand Down

0 comments on commit 5cd2360

Please sign in to comment.