fix(proxy): fix dns and le issues on cloudfront
This commit is contained in:
parent
c72e617c00
commit
5e72274f9f
1 changed files with 2 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue