From 251cc5fcac927da7b14172144ede0433df12fb5b Mon Sep 17 00:00:00 2001 From: Hugo Tiburtino <45924645+hugotiburtino@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:05:34 +0100 Subject: [PATCH] cloudflare: add subdomain for asset-proxy --- modules/cloudflare/main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/cloudflare/main.tf b/modules/cloudflare/main.tf index 3f5202d..d54a828 100644 --- a/modules/cloudflare/main.tf +++ b/modules/cloudflare/main.tf @@ -123,3 +123,12 @@ resource "cloudflare_record" "cname_enmeshed" { type = "CNAME" proxied = true } + +# asset-proxy +resource "cloudflare_record" "cname_asset_proxy" { + zone_id = var.zone_id + name = "asset-proxy" + value = var.domain + type = "CNAME" + proxied = true +} \ No newline at end of file