proxy/azure_cdn: the origin has the smart requirement

This commit is contained in:
Iain Learmonth 2022-05-25 10:23:25 +01:00
parent 5b503da621
commit c0a0474fbf

View file

@ -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 {