I got it resolved. Coolify has a particular requirement: every configuration of applications that use a public domain needs to be set to use HTTP. For example, in the Coolify panel for the containers, configure the domain of the builder and the viewer with http://mydomain.com. However, in the docker-compose.yml file of your Typebot setup, configure the environment variables
NEXTAUTH_URL
NEXT_PUBLIC_VIEWER_URL
with
https://mydomain.com. This ensures that Coolify points to your domain and your domain can reach your application backend.