diff --git a/gateway_policy.tf b/gateway_policy.tf index cf32435..e7f5b5d 100644 --- a/gateway_policy.tf +++ b/gateway_policy.tf @@ -57,7 +57,7 @@ resource "cloudflare_zero_trust_gateway_policy" "block_ads" { locals { # The full path of the list holding the domain list - ads_domain_list_file = "${path.module}/lists/pihole_domain_list.txt" + ads_domain_list_file = fileset("${path.module}/lists/pihole_domain_list.txt", "*.txt") # Parse the file and create a list, one item per line ads_domain_list = split("\n", file(local.ads_domain_list_file))