forked from Deuxfleurs/nixcfg
add automatic subdomains for v4 and v6 per site for dashboard
This commit is contained in:
parent
82500758f6
commit
f724e81239
1 changed files with 8 additions and 2 deletions
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue