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"
|
cloud_name = "aws"
|
||||||
|
|
||||||
template_parameters = [
|
template_parameters = [
|
||||||
|
"admin_email",
|
||||||
"aws_access_key",
|
"aws_access_key",
|
||||||
"aws_secret_key",
|
"aws_secret_key",
|
||||||
"smart_zone"
|
"smart_zone"
|
||||||
|
@ -92,7 +93,7 @@ class ProxyCloudfrontAutomation(ProxyAutomation):
|
||||||
module "cloudfront_{{ proxy.id }}" {
|
module "cloudfront_{{ proxy.id }}" {
|
||||||
source = "{{ terraform_modules_path }}/terraform-aws-bc-proxy"
|
source = "{{ terraform_modules_path }}/terraform-aws-bc-proxy"
|
||||||
{% if proxy.origin.smart %}
|
{% 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 %}
|
{% else %}
|
||||||
origin_domain = "{{ proxy.origin.domain_name }}"
|
origin_domain = "{{ proxy.origin.domain_name }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b3f386eeb1e9e6cc558509ab863d325b51d4ed18
|
Subproject commit 4f5cee28bb35a9698fe8949db383ca7239366b93
|
Loading…
Add table
Add a link
Reference in a new issue