📈(frontend) setup a reverse proxy for analytics

Proxy analytics requests through our backend to minimize
ad-blockers impact. I configured the Helm Charts following
PostHog official documentation.
This commit is contained in:
lebaudantoine
2024-09-23 11:44:20 +02:00
committed by aleb_the_flash
parent 9e9b9015f4
commit a276517278
9 changed files with 234 additions and 0 deletions

View File

@@ -126,3 +126,12 @@ ingressAdmin:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/auth-signin: https://oauth2-proxy.beta.numerique.gouv.fr/oauth2/start
nginx.ingress.kubernetes.io/auth-url: https://oauth2-proxy.beta.numerique.gouv.fr/oauth2/auth
posthog:
ingress:
enabled: true
host: product.visio.numerique.gouv.fr
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/upstream-vhost: eu.i.posthog.com
nginx.ingress.kubernetes.io/backend-protocol: https