117 lines
2.8 KiB
HCL
117 lines
2.8 KiB
HCL
# https://registry.terraform.io/providers/namecheap/namecheap/latest/docs
|
|
resource "namecheap_domain_records" "pub-solar" {
|
|
domain = "pub.solar"
|
|
mode = "OVERWRITE"
|
|
email_type = "MX"
|
|
|
|
record {
|
|
hostname = "infra-1"
|
|
type = "CNAME"
|
|
address = "infra-1.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone"
|
|
}
|
|
record {
|
|
hostname = "auth"
|
|
type = "CNAME"
|
|
address = "infra-1.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone"
|
|
}
|
|
record {
|
|
hostname = "git"
|
|
type = "CNAME"
|
|
address = "infra-1.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone"
|
|
}
|
|
record {
|
|
hostname = "vpn"
|
|
type = "CNAME"
|
|
address = "infra-1.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone"
|
|
}
|
|
record {
|
|
hostname = "cache"
|
|
type = "A"
|
|
address = "95.217.225.160"
|
|
}
|
|
record {
|
|
hostname = "collabora"
|
|
type = "A"
|
|
address = "95.217.225.160"
|
|
}
|
|
record {
|
|
hostname = "mail"
|
|
type = "A"
|
|
address = "85.88.23.19"
|
|
}
|
|
record {
|
|
hostname = "@"
|
|
type = "ALIAS"
|
|
address = "www.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone."
|
|
ttl = 300
|
|
}
|
|
record {
|
|
hostname = "chat"
|
|
type = "CNAME"
|
|
address = "matrix.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone."
|
|
}
|
|
record {
|
|
hostname = "cloud"
|
|
type = "CNAME"
|
|
address = "nc-web.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone."
|
|
}
|
|
record {
|
|
hostname = "dimension"
|
|
type = "CNAME"
|
|
address = "matrix.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone."
|
|
}
|
|
record {
|
|
hostname = "element"
|
|
type = "CNAME"
|
|
address = "matrix.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone."
|
|
}
|
|
record {
|
|
hostname = "files"
|
|
type = "CNAME"
|
|
address = "mastodon-proxy.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone."
|
|
}
|
|
record {
|
|
hostname = "imap"
|
|
type = "CNAME"
|
|
address = "mail.pub.solar."
|
|
}
|
|
record {
|
|
hostname = "mastodon"
|
|
type = "CNAME"
|
|
address = "mastodon-proxy.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone."
|
|
}
|
|
record {
|
|
hostname = "matrix"
|
|
type = "CNAME"
|
|
address = "matrix.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone."
|
|
}
|
|
record {
|
|
hostname = "smtp"
|
|
type = "CNAME"
|
|
address = "mail.pub.solar."
|
|
}
|
|
record {
|
|
hostname = "www"
|
|
type = "CNAME"
|
|
address = "www.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone."
|
|
}
|
|
record {
|
|
hostname = "@"
|
|
type = "TXT"
|
|
address = "v=spf1 a:mail.greenbaum.cloud ?all"
|
|
}
|
|
record {
|
|
hostname = "_dmarc"
|
|
type = "TXT"
|
|
address = "v=DMARC1; p=reject;"
|
|
}
|
|
record {
|
|
hostname = "@"
|
|
type = "MX"
|
|
address = "mail.greenbaum.cloud"
|
|
mx_pref = "0"
|
|
}
|
|
# SRV records can only be changed via NameCheap Web UI
|
|
# add comment
|
|
}
|