diff --git a/modules/playful-web/main.tf b/modules/playful-web/main.tf index 492c650..6462b61 100644 --- a/modules/playful-web/main.tf +++ b/modules/playful-web/main.tf @@ -69,6 +69,19 @@ resource "fastly_service_vcl" "cdn" { name = "Generated by default compression policy" } + dynamic "header" { + for_each = var.noindex ? [] : [1] + content { + action = "set" + destination = "http.Playful-Enable-Discoverability" + ignore_if_set = false + name = "Pass header to enable discoverability in prod" + priority = 100 + source = "true" + type = "request" + } + } + header { action = "set" destination = "http.Strict-Transport-Security"