refactor(ops/glesys): add explicit records pointing to whitby
instead of setting a wildcard record (which causes really weird behaviour if you set your search domain to tvl.su/tvl.fyi, which I do), DNS records for services running on whitby are now set explicitly. Change-Id: Ia05399b62dad326942fe0efda30782ce153df99d Reviewed-on: https://cl.tvl.fyi/c/depot/+/5961 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
1edba49adb
commit
7d3d3b3c8f
3 changed files with 33 additions and 14 deletions
|
@ -53,13 +53,13 @@ resource "glesys_dnsdomain_record" "tvl_fyi_whitby_AAAA" {
|
|||
data = var.whitby_ipv6
|
||||
}
|
||||
|
||||
# This record is responsible for hosting ~all TVL services. Be
|
||||
# mindful!
|
||||
resource "glesys_dnsdomain_record" "tvl_fyi_wildcard" {
|
||||
domain = glesys_dnsdomain.tvl_fyi.id
|
||||
host = "*"
|
||||
type = "CNAME"
|
||||
data = "whitby.tvl.fyi."
|
||||
# Explicit records for all services running on whitby
|
||||
resource "glesys_dnsdomain_record" "tvl_fyi_whitby_services" {
|
||||
domain = glesys_dnsdomain.tvl_fyi.id
|
||||
type = "CNAME"
|
||||
data = "whitby.tvl.fyi."
|
||||
host = each.key
|
||||
for_each = toset(local.whitby_services)
|
||||
}
|
||||
|
||||
# Google Domains mail forwarding configuration (no sending)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue