fix(proxy): fix dns and le issues on cloudfront

This commit is contained in:
Iain Learmonth 2023-03-30 13:32:49 +01:00
parent c72e617c00
commit 5e72274f9f

View file

@ -81,6 +81,7 @@ class ProxyCloudfrontAutomation(ProxyAutomation):
config_filename = "smart_proxy.{{ group.id }}.conf"
disable_api_termination = false
dns_zone = "{{ smart_zone }}"
letsencrypt_email_address = "{{ admin_email }}"
max_transfer_per_hour = "13000000000"
}
{% endif %}
@ -91,7 +92,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 }}.cloudfront.smart.{{ smart_zone[:-1] }}"
origin_domain = "origin-{{ proxy.origin.id }}.smart.{{ smart_zone[:-1] }}"
{% else %}
origin_domain = "{{ proxy.origin.domain_name }}"
{% endif %}