From c0a0474fbf09c28c0a836c6a94a3770024a161db Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Wed, 25 May 2022 10:23:25 +0100 Subject: [PATCH] proxy/azure_cdn: the origin has the smart requirement --- app/terraform/proxy/azure_cdn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/terraform/proxy/azure_cdn.py b/app/terraform/proxy/azure_cdn.py index 000b635..8c749c7 100644 --- a/app/terraform/proxy/azure_cdn.py +++ b/app/terraform/proxy/azure_cdn.py @@ -123,7 +123,7 @@ class ProxyAzureCdnAutomation(ProxyAutomation): location = "{{ azure_location }}" resource_group_name = data.azurerm_resource_group.this.name - {% if proxy.smart %} + {% if proxy.origin.smart %} origin_host_header = "origin-{{ proxy.origin.id }}.cloudfront.smart.{{ smart_zone[:-1] }}" origin {