disable reverse proxy and add extra site

This commit is contained in:
pierre.geeraert
2026-10-13 14:45:50 +01:00
parent dce7d02073
commit bd2d151ebd
2 changed files with 39 additions and 60 deletions
+17 -1
View File
@@ -14,7 +14,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress" {
ingress_class_name = "traefik"
# Dynamic TLS configuration for cert-manager
tls {
hosts = [join(".", [coalesce(each.value.domain_name, each.key), "geeraert.eu"])]
hosts = [join(".", [coalesce(each.value.domain_name, each.key), "geeraert.eu"]),join(".", [coalesce(each.value.domain_name, each.key), "tryton.geeraert.eu"])]
secret_name = "${each.key}-tls-secret" # cert-manager will create and manage this secret automatically
}
@@ -34,6 +34,22 @@ resource "kubernetes_ingress_v1" "automatic_ingress" {
}
}
}
rule {
host = join(".", [coalesce(each.value.domain_name, each.key), "tryton.geeraert.eu"])
http {
path {
path = "/"
backend {
service {
name = "${each.key}-svc"
port {
number = each.value.service_port[0] #selecting the first of the list
}
}
}
}
}
}
}
}