Skip to content

Commit

Permalink
wip enable cors on Posthog reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
lebaudantoine committed Dec 30, 2024
1 parent 0e742a2 commit 3f71306
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/helm/env.d/staging/values.meet.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ posthog:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/upstream-vhost: eu.i.posthog.com
nginx.ingress.kubernetes.io/backend-protocol: https
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, PUT, POST, DELETE, PATCH, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-origin: "*" # Or restrict to specific origins
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"

ingressAssets:
enabled: true
Expand All @@ -186,6 +190,10 @@ posthog:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/upstream-vhost: eu-assets.i.posthog.com
nginx.ingress.kubernetes.io/backend-protocol: https
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, PUT, POST, DELETE, PATCH, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-origin: "*" # Or restrict to specific origins
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"

summary:
replicas: 1
Expand Down

0 comments on commit 3f71306

Please sign in to comment.