From e62c81897e818cc899839fdfe2c75929356e1efa Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Tue, 6 Jun 2023 17:13:59 +0200 Subject: [PATCH] fix: minor things --- modules/dns/hetzner.tf | 8 ++++---- remote/justfile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/dns/hetzner.tf b/modules/dns/hetzner.tf index fd3db29..cfe58ec 100644 --- a/modules/dns/hetzner.tf +++ b/modules/dns/hetzner.tf @@ -55,8 +55,8 @@ resource "hetznerdns_record" "mx" { } MX = { type = "MX" - name = var.domain, - value = format("0 mail.%s", var.domain) # handle MX priority 0 + name = "@", + value = "0 mail" # handle MX priority 0 } } } @@ -79,8 +79,8 @@ resource "hetznerdns_record" "mx2" { } MX = { type = "MX" - name = var.domain - value = format("5 mx2.%s", var.domain) # handle MX priority 5 + name = "@" + value = "5 mx2" # handle MX priority 5 } } } diff --git a/remote/justfile b/remote/justfile index c39949f..382f3f4 100644 --- a/remote/justfile +++ b/remote/justfile @@ -1,6 +1,6 @@ pg_user := "terraform" # pg_host := "pg.monotremata.xyz" -pg_host := "narwhal" +pg_host := "pg.monotremata.xyz" pg_db := "terraform_backend" pg_port := "5432"