File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,12 @@ resource "fastly_service_vcl" "python_org" {
124124 statement = " req.url ~ \" ^/(api|admin)/\" "
125125 type = " REQUEST"
126126 }
127+ condition {
128+ name = " Let's Encrypt"
129+ priority = 10
130+ statement = " req.url ~ \" ^/.well-known/acme-challenge/\" "
131+ type = " REQUEST"
132+ }
127133 condition {
128134 name = " apex redirect"
129135 priority = 10
@@ -133,7 +139,7 @@ resource "fastly_service_vcl" "python_org" {
133139 condition {
134140 name = " apex"
135141 priority = 1
136- statement = " req.http.host == \" python.org\" "
142+ statement = " req.http.host == \" python.org\" && req.url !~ \" ^/.well-known/acme-challenge/ \" "
137143 type = " REQUEST"
138144 }
139145 condition {
@@ -350,6 +356,15 @@ resource "fastly_service_vcl" "python_org" {
350356 request_condition = " Uncacheable URLs"
351357 xff = " append"
352358 }
359+ request_setting {
360+ action = " pass"
361+ bypass_busy_wait = false
362+ force_ssl = false
363+ max_stale_age = 0
364+ name = " Let's Encrypt"
365+ request_condition = " Let's Encrypt"
366+ xff = " append"
367+ }
353368
354369 response_object {
355370 name = " www redirect"
You can’t perform that action at this time.
0 commit comments