alejandr0angul0.dev/config/production/deployment.toml.sample

22 lines
458 B
Plaintext
Raw Permalink Normal View History

2020-07-18 00:51:51 +00:00
order = [".jpg$", ".gif$"]
[[targets]]
name = "aws-s3"
2020-07-18 06:28:13 +00:00
URL = "{{S3URL}}"
cloudFrontDistributionID = "{{CLOUDFRONTDISTRIBUTIONID}}"
2020-07-18 00:51:51 +00:00
[[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