From 5e72274f9fbff8f6b3faa0fdbdb783d4a5f900fa Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Thu, 30 Mar 2023 13:32:49 +0100 Subject: [PATCH] fix(proxy): fix dns and le issues on cloudfront --- app/terraform/proxy/cloudfront.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/terraform/proxy/cloudfront.py b/app/terraform/proxy/cloudfront.py index 9b8eee8..3d163ca 100644 --- a/app/terraform/proxy/cloudfront.py +++ b/app/terraform/proxy/cloudfront.py @@ -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 %}