feat(proxy): use group name in dns for smart origins
This commit is contained in:
parent
480b2b0d65
commit
42d6d0ee96
2 changed files with 3 additions and 2 deletions
|
@ -14,6 +14,7 @@ class ProxyCloudfrontAutomation(ProxyAutomation):
|
|||
cloud_name = "aws"
|
||||
|
||||
template_parameters = [
|
||||
"admin_email",
|
||||
"aws_access_key",
|
||||
"aws_secret_key",
|
||||
"smart_zone"
|
||||
|
@ -92,7 +93,7 @@ class ProxyCloudfrontAutomation(ProxyAutomation):
|
|||
module "cloudfront_{{ proxy.id }}" {
|
||||
source = "{{ terraform_modules_path }}/terraform-aws-bc-proxy"
|
||||
{% if proxy.origin.smart %}
|
||||
origin_domain = "origin-{{ proxy.origin.id }}.smart.{{ smart_zone[:-1] }}"
|
||||
origin_domain = "origin-{{ proxy.origin.id }}.{{ proxy.origin.group.group_name }}.smart.{{ smart_zone[:-1] }}"
|
||||
{% else %}
|
||||
origin_domain = "{{ proxy.origin.domain_name }}"
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue