Compare changes

Choose any two refs to compare.

Changed files
+20 -7
config
inventory
infra
prod
+4 -1
config/inventory/prod/clouding_groups.yaml
···
children:
knot_servers:
hosts:
-
nudo0: {}
+
nudo0:
+
knot_enable_caddy: true
+
knot_server_hostname: "knot.juanlu.space"
+
knot_server_owner: "did:plc:p7v4p6njfpdv6gen4bllnkqm"
+16 -6
infra/prod/main.tf
···
source_ip = "0.0.0.0/0"
}
-
# Allow Knot server (port 5555)
-
resource "clouding_firewall_rule" "knot_server" {
+
# Allow HTTP (port 80) for Let's Encrypt certificate challenges
+
resource "clouding_firewall_rule" "http" {
firewall_id = clouding_firewall.knot.id
-
description = "Allow Knot server"
+
description = "Allow HTTP (Let's Encrypt)"
protocol = "tcp"
-
port_range_min = 5555
-
port_range_max = 5555
+
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"
}
···
}
output "knot0_ipv4" {
-
value = try(clouding_server.knot0.hostname, "Not yet assigned")
+
value = try(clouding_server.knot0.public_ip, "Not yet assigned")
}