Share feedback, ideas and get community help

Home
Members
Daniel S. Palma
D
Daniel S. Palma
Offline, last seen 3 months ago
Joined September 13, 2024
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.
3 comments
B
D
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;