proxy: smart redirector

This commit is contained in:
Iain Learmonth 2022-08-12 11:55:14 +01:00
parent 289afbf924
commit 6c88a57ad5
3 changed files with 101 additions and 3 deletions

View file

@ -18,7 +18,9 @@ class ProxyCloudfrontAutomation(ProxyAutomation):
"rfc2136_nameserver",
"rfc2136_tsig_key",
"rfc2136_tsig_secret",
"smart_zone"
"smart_zone",
"maxmind_account_id",
"maxmind_license_key"
]
template = """
@ -53,7 +55,7 @@ class ProxyCloudfrontAutomation(ProxyAutomation):
key_name = local.rfc2136_tsig_key
key_secret = local.rfc2136_tsig_secret
key_algorithm = "hmac-sha512"
timeout = "10s"
timeout = "60s"
}
}
@ -100,6 +102,8 @@ class ProxyCloudfrontAutomation(ProxyAutomation):
rfc2136_nameserver = local.rfc2136_nameserver
rfc2136_tsig_key = local.rfc2136_tsig_key
rfc2136_tsig_secret = local.rfc2136_tsig_secret
maxmind_account_id = "{{ maxmind_account_id }}"
maxmind_license_key = "{{ maxmind_license_key }}"
}
resource "aws_s3_object" "smart_config_{{ group.id }}" {