diff options
Diffstat (limited to 'config/production/deployment.toml')
| -rw-r--r-- | config/production/deployment.toml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/config/production/deployment.toml b/config/production/deployment.toml new file mode 100644 index 0000000..a12e23e --- /dev/null +++ b/config/production/deployment.toml @@ -0,0 +1,31 @@ +# toml-docs-start az-blob +# By default, files are uploaded in an arbitrary order. +# Files that match the regular expressions in the "Order" list +# will be uploaded first, in the listed order. +order = [".webp$", ".jpg$", ".gif$"] + +[targets] +name = "hinode" +URL = "azblob://$web" + +[[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|webp)$" +cacheControl = "max-age=31536000, no-transform, public" +gzip = false + +[[matchers]] +# Set custom content type for /sitemap.xml +pattern = "^sitemap\\.xml$" +contentType = "application/xml" +gzip = true + +[[matchers]] +pattern = "^.+\\.(html|xml|json)$" +gzip = true +# toml-docs-end az-blob |
