From 5bb2c3b8680dbbca96f91c802d52a7ff32a2898f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 20 Mar 2020 22:11:43 +0000 Subject: [PATCH] Add matrix SRV record --- terraform/theorangeone.net.tf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/terraform/theorangeone.net.tf b/terraform/theorangeone.net.tf index a3e25aa..b14996b 100644 --- a/terraform/theorangeone.net.tf +++ b/terraform/theorangeone.net.tf @@ -107,3 +107,20 @@ resource "cloudflare_record" "theorangeonenet_snippets" { type = "CNAME" ttl = 1 } + +resource "cloudflare_record" "theorangeonenet_srv_matrix" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "_matrix._tcp" + type = "SRV" + ttl = 1 + + data = { + service = "_matrix" + proto = "_tcp" + name = "theorangeone.net" + priority = 10 + weight = 0 + port = 8448 + target = cloudflare_record.jakehowardtech_matrix.hostname + } +}