From 311df70a3f134ed01c184b1fa7800d191a552dd3 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 18 Jan 2022 09:04:48 +0100 Subject: [PATCH] docs: allow privacy friendly analytics in docs page and set hsts (#3006) * chore: prepare deployment to netlify instead of cloudflare * add badge --- docs/README.md | 2 ++ docs/netlify.toml | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 docs/netlify.toml diff --git a/docs/README.md b/docs/README.md index 6d1c3bdbc2..a0fcb8d286 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,5 @@ +[![Netlify Status](https://api.netlify.com/api/v1/badges/b82a23f7-d8c7-4025-af18-a46586e89ed0/deploy-status)](https://app.netlify.com/sites/zitadel-docs/deploys) + # Website This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern static website generator. diff --git a/docs/netlify.toml b/docs/netlify.toml new file mode 100644 index 0000000000..5a8c5cd91c --- /dev/null +++ b/docs/netlify.toml @@ -0,0 +1,23 @@ +[build] + command = "npm run build" + +[[redirects]] + from = "/proxy/js/script.js" + to = "https://plausible.io/js/plausible.js" + status = 200 + force = true + +[[redirects]] + from = "/proxy/api/event" + to = "https://plausible.io/api/event" + status = 202 + force = true + +[[headers]] + for = "/*" + [headers.values] + Strict-Transport-Security = ''' + max-age=31536000; + includeSubDomains; + preload''' +