aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-14 09:28:31 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-14 09:28:31 +0100
commitf724e81239b119da298913728f3948ce1f2c4325 (patch)
treecc16fc93633966b3fb469bac3b208367120f3709
parent82500758f6a88a6f5faa0cf03159da7ed18ddfdc (diff)
downloadnixcfg-f724e81239b119da298913728f3948ce1f2c4325.tar.gz
nixcfg-f724e81239b119da298913728f3948ce1f2c4325.zip
add automatic subdomains for v4 and v6 per site for dashboard
-rw-r--r--cluster/prod/app/core/deploy/tricot.hcl10
1 files 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"
}