@cryptotaxi247 / infra-1 / commits / 2906b4f3

tf/nixpkgs-tarballs: add TLS subscription

zimbatm committed Aug 30, 2021 at 21:25 UTC 2906b4f32818ba3e207fe0ee5bf550c1fc413510
1 file changed +11
terraform/nixpkgs-tarballs.tf
+11
@@ -299,3 +299,14 @@ resource "fastly_service_v1" "nixpkgs-tarballs" {
299 type = "fetch"
300 }
301 }
302 +
303 +resource "fastly_tls_subscription" "nixpkgs-tarballs" {
304 + domains = [for domain in fastly_service_v1.nixpkgs-tarballs.domain : domain.name]
305 + configuration_id = local.fastly_tls12_sni_configuration_id
306 + certificate_authority = "globalsign"
307 +}
308 +
309 +# TODO: move the DNS config to terraform
310 +output "nixpkgs-tarballs-managed_dns_challenge" {
311 + value = fastly_tls_subscription.nixpkgs-tarballs.managed_dns_challenge
312 +}