proxies: add support for bypass token
This commit is contained in:
parent
6d989db3ef
commit
018494bd58
3 changed files with 7 additions and 8 deletions
|
@ -128,21 +128,18 @@ class ProxyAzureCdnAutomation(ProxyAutomation):
|
|||
location = "{{ azure_location }}"
|
||||
resource_group_name = data.azurerm_resource_group.this.name
|
||||
|
||||
origin_host_header = "{{ proxy.origin.domain_name }}"
|
||||
|
||||
origin {
|
||||
name = "upstream"
|
||||
host_name = "{{ proxy.origin.domain_name }}"
|
||||
}
|
||||
|
||||
global_delivery_rule {
|
||||
modify_request_header_action {
|
||||
action = "Overwrite"
|
||||
name = "User-Agent"
|
||||
value = "Amazon CloudFront"
|
||||
}
|
||||
modify_request_header_action {
|
||||
action = "Append"
|
||||
name = "X-Amz-Cf-Id"
|
||||
value = "dummystring"
|
||||
name = "Bypass-Rate-Limit-Token"
|
||||
value = "{{ bypass_token }}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue