Initial commit
This commit is contained in:
commit
c0a2bc6a81
12 changed files with 354 additions and 0 deletions
22
config/production/deployment.toml.sample
Normal file
22
config/production/deployment.toml.sample
Normal file
|
@ -0,0 +1,22 @@
|
|||
order = [".jpg$", ".gif$"]
|
||||
|
||||
[[targets]]
|
||||
name = "aws-s3"
|
||||
URL = "$S3URL"
|
||||
cloudFrontDistributionID = "$cloudFrontDistributionID"
|
||||
|
||||
[[matchers]]
|
||||
# Cache static assets for 1 year.
|
||||
pattern = "^.+\\.(js|css|svg|ttf)$"
|
||||
cacheControl = "max-age=31536000, no-transform, public"
|
||||
gzip = true
|
||||
|
||||
[[matchers]]
|
||||
pattern = "^.+\\.(png|jpg)$"
|
||||
cacheControl = "max-age=31536000, no-transform, public"
|
||||
gzip = false
|
||||
|
||||
[[matchers]]
|
||||
pattern = "^.+\\.(html|xml|json)$"
|
||||
gzip = true
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue