fastly: Redirect http to https for some websites
Dionysis Grigoropoulos committed
Apr 16, 2024 at 21:39 UTC
289dc593be4d53b3ab027e846d411a282a7804d3
4 files changed
+20
terraform/cache.tf
+5
@@ -129,6 +129,11 @@ resource "fastly_service_vcl" "cache" {
129
weight = 100
130
}
131
132
+ request_setting {
133
+ name = "Redirect HTTP to HTTPS"
134
+ force_ssl = true
135
+ }
136
+
137
condition {
138
name = "is-404"
139
priority = 0
terraform/channels.tf
+5
@@ -115,6 +115,11 @@ resource "fastly_service_vcl" "channels" {
115
request_condition = "flake-registry"
116
}
117
118
+ request_setting {
119
+ name = "Redirect HTTP to HTTPS"
120
+ force_ssl = true
121
+ }
122
+
123
condition {
124
name = "Match /"
125
priority = 10
terraform/nixpkgs-tarballs.tf
+5
@@ -169,6 +169,11 @@ resource "fastly_service_vcl" "nixpkgs-tarballs" {
169
weight = 100
170
}
171
172
+ request_setting {
173
+ name = "Redirect HTTP to HTTPS"
174
+ force_ssl = true
175
+ }
176
+
177
condition {
178
name = "Generated by synthetic response for 404 page"
179
priority = 0
terraform/releases.tf
+5
@@ -109,6 +109,11 @@ resource "fastly_service_vcl" "releases" {
109
weight = 100
110
}
111
112
+ request_setting {
113
+ name = "Redirect HTTP to HTTPS"
114
+ force_ssl = true
115
+ }
116
+
117
condition {
118
name = "Generated by synthetic response for 404 page"
119
priority = 0