Skip to content

Commit bb37d1f

Browse files
Merge pull request #12 from fastly/custom_challenge_image
Rev providers and custom logo
2 parents d8feb7a + 6201103 commit bb37d1f

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

gold-standard-starter/providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
# https://registry.terraform.io/providers/signalsciences/sigsci/latest
44
sigsci = {
55
source = "signalsciences/sigsci"
6-
version = ">= 3.0.0"
6+
version = ">= 3.3.0"
77
}
88
}
99
}

ngwaf-terraform-edge-deploy/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ resource "fastly_service_vcl" "frontend-vcl-service" {
2424
#### Adds the necessary header to enable response headers from the NGWAF edge deployment, which may then be used for logging.
2525
# Also, removes the sensitive response headers before delivering the response to the client
2626

27+
snippet {
28+
name = "Update for custom logo"
29+
content = file("${path.module}/vcl/custom_challenge_logo.vcl")
30+
type = "init"
31+
priority = 100
32+
}
33+
2734
snippet {
2835
name = "Add ngwaf log headers"
2936
content = file("${path.module}/vcl/add_ngwaf_log_headers.vcl")

ngwaf-terraform-edge-deploy/providers.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ terraform {
44
required_providers {
55
fastly = {
66
source = "fastly/fastly"
7-
version = ">= 5.2.2"
7+
version = ">= 5.11.0"
88
}
99
sigsci = {
1010
source = "signalsciences/sigsci"
11-
version = ">= 3.0.0"
11+
version = ">= 3.3.0"
1212
}
1313
http = {
1414
source = "hashicorp/http"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sub vcl_recv {
2+
if (req.url ~ "/fastly/logo") {
3+
set req.url = "/static-assets/challenge-robot.jpg";
4+
}
5+
}

0 commit comments

Comments
 (0)