Share feedback, ideas and get community help

Updated last month

Helm Chart / NEXTAUTH_URL_INTERNAL not used in the code

Hi!

I started to write the TypeBot Helm Chart to deploy it easily on Kubernetes, but I have currently a bug with the NEXTAUTH_URL_INTERNAL ENV var.

The two pods (builder & viewer) are running well, but I need to use the NEXTAUTH_URL_INTERNAL env var to call the builder pod with his internal URL (http://typebot-builder.typebot.svc.cluster.local:3000) instead of the public URL that is protected by Cloudflare ZTN (https://chatbot-builder.timoa.com).

The issue is that the viewer pod is calling the NEXTAUTH_URL instead of NEXTAUTH_URL_INTERNAL and it fail to connect.

I looked into the code, and I found out that there is no reference to NEXTAUTH_URL_INTERNAL (only documentation), where the NEXTAUTH_URL is everywhere.

I'm ready to make the PR to add the Helm Chart support, but I need to fix this issue first πŸ˜…
Attachments
Screenshot_2024-11-09_at_17.43.04.png
Screenshot_2024-11-09_at_17.45.34.png
Screenshot_2024-11-09_at_17.43.27.png
T
1 comment
I fixed the issue with the CORS (related to my Cloudflare ZTN configuration), but we still have an ENV variable that it is not used in the code.
I created an issue on GitHub: https://github.com/baptisteArno/typebot.io/issues/1875
Add a reply
Sign up and join the conversation on Discord