Skip to content

Commit ddc1e6e

Browse files
committed
enable origin shield for docs.rs webserver
1 parent d19ba42 commit ddc1e6e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

terraform/docs-rs/cloudfront.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ resource "aws_cloudfront_distribution" "webapp" {
110110
origin_ssl_protocols = ["TLSv1.2"]
111111
}
112112

113+
origin_shield {
114+
enabled = true
115+
# this is the region where the docs.rs EC2 server is located.
116+
origin_shield_region = "us-west-1"
117+
}
118+
113119
custom_header {
114120
name = "X-Origin-Auth"
115121
value = random_password.origin_auth.result

0 commit comments

Comments
 (0)