set up terranix matrix again

This commit is contained in:
Ingolf Wagner 2024-04-04 21:26:10 +02:00
parent 9f7b31fe57
commit 24618c8041
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
7 changed files with 212 additions and 140 deletions

View file

@ -6,6 +6,9 @@ locals {
normal_ttl = 12 * local.hours
short_ttl = 30 * local.minutes
very_short_ttl = 2 * local.minutes
orbi = "95.216.66.212"
robi = "144.76.13.147"
}
resource "namecheap_domain_records" "terranix" {
@ -31,14 +34,14 @@ resource "namecheap_domain_records" "terranix" {
# matrix.terranix.org
record {
address = "144.76.13.147"
address = local.orbi
hostname = "matrix"
mx_pref = 10
ttl = local.short_ttl
type = "A"
}
record {
address = "144.76.13.147"
address = local.orbi
hostname = "element"
mx_pref = 10
ttl = local.normal_ttl