diff options
author | Alan Pearce | 2024-05-28 23:23:33 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-28 23:23:33 +0200 |
commit | a70fb3f413a205390b45943007400d5d9a06a72b (patch) | |
tree | 2ca6b45c37ddd89054e46d523d5cd6e3c3c3c133 /netlify.toml | |
parent | fe37fcf3daa0eaafc1236050ac95b5d4ba21bcd2 (diff) | |
parent | 995c4f6eff9a601c75c39d40f945c8a70d710d95 (diff) | |
download | zola-bearblog-a70fb3f413a205390b45943007400d5d9a06a72b.tar.lz zola-bearblog-a70fb3f413a205390b45943007400d5d9a06a72b.tar.zst zola-bearblog-a70fb3f413a205390b45943007400d5d9a06a72b.zip |
Merge branch 'main' into microformats2 microformats2
Diffstat (limited to 'netlify.toml')
-rw-r--r-- | netlify.toml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..91f23c5 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,27 @@ +[build] +publish = "public" +command = "zola build" + +[build.environment] +# Set the version name that you want to use and Netlify will automatically use it. +ZOLA_VERSION = "0.17.2" + +# The magic for deploying previews of branches. +# We need to override the base url with whatever url Netlify assigns to our +# preview site. We do this using the Netlify environment variable +# `$DEPLOY_PRIME_URL`. + +[context.deploy-preview] +command = "zola build --base-url $DEPLOY_PRIME_URL" +[context.branch-deploy] +command = "zola build --base-url $DEPLOY_PRIME_URL" + +[[headers]] + for = "/*" + [headers.values] + X-Frame-Options = "DENY" + X-Content-Type-Options = "nosniff" + X-XSS-Protection = "1; mode=block" + Referrer-Policy = "strict-origin-when-cross-origin" + Strict-Transport-Security = "max-age=63072000; includeSubdomains" + Content-Security-Policy = "default-src 'none'; img-src 'self'; object-src 'none'; script-src 'none'; style-src 'sha256-iJQfPEEzY1fjDE/sJElXzaTdtJI+vxkKM//fXwJj/cI='; form-action 'none'; base-uri 'self'; frame-ancestors 'none'" |