We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d19ba42 commit cd8ae65Copy full SHA for cd8ae65
terraform/docs-rs/cloudfront.tf
@@ -110,6 +110,15 @@ resource "aws_cloudfront_distribution" "webapp" {
110
origin_ssl_protocols = ["TLSv1.2"]
111
}
112
113
+ origin_shield {
114
+ enabled = true
115
+ # the docs.rs webserver is in `us-west-1` but origin shield
116
+ # isn't available there.
117
+ # So we enable it in `us-west-2` instead, following the documentation.
118
+ # https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html
119
+ origin_shield_region = "us-west-2"
120
+ }
121
+
122
custom_header {
123
name = "X-Origin-Auth"
124
value = random_password.origin_auth.result
0 commit comments