add automatic subdomains for v4 and v6 per site for dashboard

This commit is contained in:
Alex 2024-02-14 09:28:31 +01:00
parent 82500758f6
commit f724e81239

View file

@ -87,7 +87,10 @@ EOH
service { service {
name = "tricot-http" name = "tricot-http"
port = "http_port" port = "http_port"
tags = [ "(diplonat (tcp_port 80))", "${meta.site}" ] tags = [
"(diplonat (tcp_port 80))",
"${meta.site}"
]
address_mode = "host" address_mode = "host"
} }
@ -97,9 +100,12 @@ EOH
tags = [ tags = [
"(diplonat (tcp_port 443))", "(diplonat (tcp_port 443))",
"${meta.site}", "${meta.site}",
"d53-aaaa ${meta.site}.site.deuxfleurs.fr",
"d53-a global.site.deuxfleurs.fr", "d53-a global.site.deuxfleurs.fr",
"d53-aaaa global.site.deuxfleurs.fr", "d53-aaaa global.site.deuxfleurs.fr",
"d53-a ${meta.site}.site.deuxfleurs.fr",
"d53-aaaa ${meta.site}.site.deuxfleurs.fr",
"d53-a v4.${meta.site}.site.deuxfleurs.fr",
"d53-aaaa v6.${meta.site}.site.deuxfleurs.fr",
] ]
address_mode = "host" address_mode = "host"
} }