How to get SSL certificate for your custom domain
Create a Portal in Chatwoot’s dashboard
Follow these step to create your Portal. Refer to this guide.Point your custom domain to your Chatwoot domain
-
Go to your DNS provider and add a new CNAME record.
- For the above example, add docs as a CNAME record and point it to the your selfhosted chatwoot domain(FRONTEND_URL).
-
This will ensure that your CNAME record points to the selfhosted Chatwoot installation. For your custom domain, we have your portal information. In this case,
docs.example.com
Setting up SSL
- Use certbot to generate SSL certificates for your custom domain.
-
Create a new nginx config to route requests to this domain to Chatwoot. Make a copy of
/etc/nginx/sites-available/nginx_chatwoot.conf
and make necessary changes for the new domain. - Restart nginx server.
docs.yourdomain.com
is live with a secure connection, and your portal data is visible.
How does this work?
These are the engineering details to understandHow does docs.yourdomain.com
gets the portal data with SSL certificate.
docs.yourdomain.com
resolves by customers nameserver and redirects to your Chatwoot domain.- Chatwoot check for the portal record with custom-domain
docs.yourdomain.com
- Redirects to the portal records for the domain
docs.yourdomain.com