resource pool system
This commit is contained in:
parent
dc989dd7cb
commit
16f7e2199d
19 changed files with 382 additions and 105 deletions
|
@ -9,7 +9,7 @@ class ProxyAzureCdnAutomation(ProxyAutomation):
|
|||
short_name = "proxy_azure_cdn"
|
||||
description = "Deploy proxies to Azure CDN"
|
||||
provider = "azure_cdn"
|
||||
subgroup_max = 25
|
||||
subgroup_members_max = 25
|
||||
parallelism = 1
|
||||
|
||||
template_parameters = [
|
||||
|
@ -125,21 +125,12 @@ class ProxyAzureCdnAutomation(ProxyAutomation):
|
|||
location = "{{ azure_location }}"
|
||||
resource_group_name = data.azurerm_resource_group.this.name
|
||||
|
||||
{% if proxy.origin.smart %}
|
||||
origin_host_header = "origin-{{ proxy.origin.id }}.cloudfront.smart.{{ smart_zone[:-1] }}"
|
||||
|
||||
origin {
|
||||
name = "upstream"
|
||||
host_name = "origin-{{ proxy.origin.id }}.cloudfront.smart.{{ smart_zone[:-1] }}"
|
||||
}
|
||||
{% else %}
|
||||
origin_host_header = "{{ proxy.origin.domain_name }}"
|
||||
|
||||
origin {
|
||||
name = "upstream"
|
||||
host_name = "{{ proxy.origin.domain_name }}"
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
global_delivery_rule {
|
||||
modify_request_header_action {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue