Share feedback, ideas and get community help

Updated 3 months ago

Helm Chart / NEXTAUTH_URL_INTERNAL not used in the code

At a glance

The community member is working on a Helm Chart to deploy TypeBot on Kubernetes, but is facing an issue with the NEXTAUTH_URL_INTERNAL environment variable. The two pods (builder and viewer) are running well, but the viewer pod is calling NEXTAUTH_URL instead of NEXTAUTH_URL_INTERNAL, causing a connection failure. The community member has looked into the code and found that there is no reference to NEXTAUTH_URL_INTERNAL, only in the documentation. They are ready to submit a pull request to add Helm Chart support, but need to fix this issue first.

In the comments, the community member mentions that they have fixed the CORS issue related to their Cloudflare ZTN configuration, but they still have an environment variable that is not used in the code. They have created an issue on GitHub to address this.

Useful resources
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