From 535f2eb27e859c32679200edd4ce97365df98493 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 20 Oct 2021 15:24:04 +0200 Subject: [PATCH] website: netlify proxy analytics Signed-off-by: Jens Langhammer --- website/docusaurus.config.js | 3 +-- website/netlify.toml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 50e49ed1d..c978e8dc2 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -119,10 +119,9 @@ module.exports = { > - - + <%~ it.headTags %> <% it.metaAttributes.forEach((metaAttribute) => { %> <%~ metaAttribute %> diff --git a/website/netlify.toml b/website/netlify.toml index dd0eea111..13bcf95c4 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -20,3 +20,15 @@ [[redirects]] from = "/version/*" to = "https://raw.githubusercontent.com/goauthentik/authentik/version-:splat" + +[[redirects]] + from = "/js/script.js" + to = "https://plausible.io/js/plausible.hash.exclusions.outbound-links.js" + status = 200 + force = true + +[[redirects]] + from = "/api/event" + to = "https://analytics.beryju.org/api/event" + status = 200 + force = true