From f724e81239b119da298913728f3948ce1f2c4325 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 14 Feb 2024 09:28:31 +0100 Subject: add automatic subdomains for v4 and v6 per site for dashboard --- cluster/prod/app/core/deploy/tricot.hcl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cluster/prod/app/core/deploy/tricot.hcl b/cluster/prod/app/core/deploy/tricot.hcl index ca1cd3f..2c0636f 100644 --- a/cluster/prod/app/core/deploy/tricot.hcl +++ b/cluster/prod/app/core/deploy/tricot.hcl @@ -87,7 +87,10 @@ EOH service { name = "tricot-http" port = "http_port" - tags = [ "(diplonat (tcp_port 80))", "${meta.site}" ] + tags = [ + "(diplonat (tcp_port 80))", + "${meta.site}" + ] address_mode = "host" } @@ -97,9 +100,12 @@ EOH tags = [ "(diplonat (tcp_port 443))", "${meta.site}", - "d53-aaaa ${meta.site}.site.deuxfleurs.fr", "d53-a 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" } -- cgit v1.2.3