[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: cdn: Cache Cuirass's static resources.
From: |
Chris Marusich |
Subject: |
01/01: cdn: Cache Cuirass's static resources. |
Date: |
Fri, 18 Jan 2019 00:37:47 -0500 (EST) |
marusich pushed a commit to branch master
in repository maintenance.
commit 1d8a7c1616b38277e7967b6212563961314ea91c
Author: Chris Marusich <address@hidden>
Date: Thu Jan 17 21:30:00 2019 -0800
cdn: Cache Cuirass's static resources.
* cdn/terraform/cloudfront.tf (berlin-mirror)
<ordered_cache_behavior>: Add a cache behavior for paths matching the
pattern "/static/*".
---
cdn/terraform/cloudfront.tf | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cdn/terraform/cloudfront.tf b/cdn/terraform/cloudfront.tf
index c4a6f57..ee248e9 100644
--- a/cdn/terraform/cloudfront.tf
+++ b/cdn/terraform/cloudfront.tf
@@ -123,6 +123,11 @@ resource "aws_cloudfront_distribution" "berlin-mirror" {
"${merge(
local.default_behavior,
map("path_pattern", "/nar/*")
+ )}",
+ # Static files for the Cuirass website - this is not part of "guix
publish".
+ "${merge(
+ local.default_behavior,
+ map("path_pattern", "/static/*")
)}"
]
# TODO: Maybe set a caching behavior for error responses.