Fix prod infra

Changed files
+15 -5
infra
prod
+15 -5
infra/prod/main.tf
···
source_ip = "0.0.0.0/0"
}
-
# Allow Knot server (port 5555)
-
resource "clouding_firewall_rule" "knot_server" {
firewall_id = clouding_firewall.knot.id
-
description = "Allow Knot server"
protocol = "tcp"
-
port_range_min = 5555
-
port_range_max = 5555
source_ip = "0.0.0.0/0"
}
···
source_ip = "0.0.0.0/0"
}
+
# Allow HTTP (port 80) for Let's Encrypt certificate challenges
+
resource "clouding_firewall_rule" "http" {
firewall_id = clouding_firewall.knot.id
+
description = "Allow HTTP (Let's Encrypt)"
protocol = "tcp"
+
port_range_min = 80
+
port_range_max = 80
+
source_ip = "0.0.0.0/0"
+
}
+
+
# Allow HTTPS (port 443) for Caddy SSL proxy
+
resource "clouding_firewall_rule" "https" {
+
firewall_id = clouding_firewall.knot.id
+
description = "Allow HTTPS (Caddy)"
+
protocol = "tcp"
+
port_range_min = 443
+
port_range_max = 443
source_ip = "0.0.0.0/0"
}