Skip to content

Commit

Permalink
fix: restore ooni_backendproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Sep 17, 2024
1 parent 3f7dbf7 commit a27010c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions tf/modules/ooni_backendproxy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ data "cloudinit_config" "ooni_backendproxy" {
filename = "init.cfg"
content_type = "text/cloud-config"
content = templatefile("${path.module}/templates/cloud-init.yml", {
distro_id = "ubuntu",
distro_codename = "noble",
wcth_addresses = var.wcth_addresses,
wcth_domain_suffix = var.wcth_domain_suffix,
backend_url = var.backend_url,
Expand Down
14 changes: 0 additions & 14 deletions tf/modules/ooni_backendproxy/templates/cloud-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,8 @@ package_update: true

packages:
- nginx
- unattended-upgrades

write_files:
- path: /etc/apt/apt.conf.d/20auto-upgrades
content: |
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
- path: /etc/apt/apt.conf.d/50unattended-upgrades
content: |
Unattended-Upgrade::Allowed-Origins {
//"${distro_id} stable";
"${distro_id} ${distro_codename}-security";
"${distro_id} ${distro_codename}-updates";
};
- path: /etc/nginx/sites-available/default
content: |
%{ if length(wcth_addresses) > 0 }
Expand Down

0 comments on commit a27010c

Please sign in to comment.