Daniel S. Palma
TTypebot
•Created by Daniel S. Palma on 8/14/2024 in #help-and-questions
How to Set Custom BaseURL for Each Workspace in Self-Hosted Typebot?
Hey everyone,
I'm running a self-hosted Typebot instance, and I've set up multiple domains, all pointing to the same Typebot instance. However, I can only access the bots/flows through the main baseURL.
Is there a way to configure a custom baseURL for each workspace so that each one can be accessed via its own unique domain? I've got the domains active and pointing correctly, but I'm stuck on how to make them work with the respective workspaces.
Any advice or guidance would be greatly appreciated! Thanks in advance.
4 replies
TTypebot
•Created by Daniel S. Palma on 5/22/2024 in #help-and-questions
Transform variables into Hash via server (without executing on the client)
Hello,
With the following code (as shown below), I managed to transform a variable into a hash. However, this code only works on the client side. I would like to know a way to execute it on the server, without relying on the client. Thank you very much.
async function sha256(message) { const msgBuffer = new TextEncoder().encode(message); const hashBuffer = await crypto.subtle.digest('SHA-256', msgBuffer); const hashArray = Array.from(new Uint8Array(hashBuffer)); const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join(''); return hashHex; } const hashTel = await sha256("{{phone}}"); return hashTel;
1 replies