docs: allow privacy friendly analytics in docs page and set hsts (#3006)

* chore: prepare deployment to netlify instead of cloudflare

* add badge
This commit is contained in:
Florian Forster 2022-01-18 09:04:48 +01:00 committed by GitHub
parent 456d32dd0d
commit 311df70a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -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.

23
docs/netlify.toml Normal file
View File

@ -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'''