fix: Make sure load balancer does not terminate TLS

This commit is contained in:
2025-08-03 15:58:12 +02:00
parent 2d43a1b169
commit 8a9691d7a5
@@ -30,26 +30,16 @@ resource "hcloud_load_balancer_service" "http" {
count = var.number_nodes > 1 ? 1 : 0
load_balancer_id = hcloud_load_balancer.docker[count.index].id
protocol = "http"
protocol = "tcp"
listen_port = 80
destination_port = 80
http {
sticky_sessions = true
cookie_name = "selected_node_for_session"
}
}
resource "hcloud_load_balancer_service" "https" {
count = var.number_nodes > 1 ? 1 : 0
load_balancer_id = hcloud_load_balancer.docker[count.index].id
protocol = "https"
protocol = "tcp"
listen_port = 443
destination_port = 443
http {
sticky_sessions = true
cookie_name = "selected_node_for_session"
}
}