Add option to specifi any port on https protocol (#3105)

Net app lb int support any port at https protocol also.

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
Alexey Stepanenko
2025-05-24 09:31:17 +03:00
committed by GitHub
parent 041cc4dd98
commit ddfc88ffed

View File

@@ -24,7 +24,7 @@ locals {
]
])
fwd_rule_ports = (
var.protocol == "HTTPS" ? [443] : coalesce(var.ports, [80])
var.protocol == "HTTPS" ? coalesce(var.ports, [443]) : coalesce(var.ports, [80])
)
fwd_rule_target = (
var.protocol == "HTTPS"