baptisteArno / typebot.io

💬 Typebot is a powerful chatbot builder that you can self-host.
https://typebot.io
Other
7.64k stars 2.12k forks source link

Self Hosting environment variables scope #1861

Open crzdg opened 1 month ago

crzdg commented 1 month ago

Hi!

Thanks for the great project, loving it. Well maintained and great code base.

I have a question for self-hosting deployment and the environment variables. Is it somewhere documented which environment variable are actually used by the two containers viewer and builder. I see in the example the share the.env`-file. However, I assume not all variables are needed in both containers. Some may shared and some may only used by one container. How can I find this out? Would like to have a clear separation of it.

Thanks!

baptisteArno commented 1 month ago

We had that separated in a previous version of the project but we prefer having a shared environment for better dev experience.

I guess we could add a mention on where each variable is used in the configuration docs

crzdg commented 1 month ago

Thanks for the answer. I understand and agree on convenience for developers and quick test deployments having it one. But when deploying to production it would nice to have to allow for separation. May a column in the table https://docs.typebot.io/self-hosting/configuration - does the trick. Would be great to see :)

I think for the parts other then general it is only the builder which would need the config. Would only apply for General table.