What is Custom Domain Deployment?
Custom domain deployment allows you to run Dograh AI with a personalized domain name (likevoice.yourcompany.com) instead of using IP addresses. This setup includes:
- Custom Domain: Access your application via a memorable domain name
- Automatic SSL: Proper SSL certificates from Let’s Encrypt or similar providers
- Professional Setup: Production-ready configuration for business use
- Easy Sharing: Share a clean URL with your team and customers
Prerequisites
Before starting, ensure you have:- A domain name you own (e.g.,
yourcompany.com) - Access to your domain’s DNS settings (usually through your domain registrar)
- Dograh AI already running on your server via the remote deployment guide
- Your server’s public IP address
Step 1: Configure DNS Records
You need to create a DNS record that points your domain to your server’s IP address.Add an A Record
Log in to your domain registrar or DNS provider and add an A record:| Setting | Value |
|---|---|
| Type | A |
| Name/Host | voice (or @ for root domain) |
| Value/Points to | Your server’s IP address (e.g., 203.0.113.50) |
| TTL | 300 (or default) |
DNS changes can take anywhere from a few minutes to 48 hours to propagate, though most changes take effect within 5-30 minutes. You can check if your DNS has propagated using tools like dnschecker.org.
Verify DNS Propagation
Before proceeding, verify that your domain points to your server:Step 2: Quick Setup (Recommended)
Once your DNS is configured, run the automated setup script that handles the rest:- Your domain name
- An email address for Let’s Encrypt notifications
- Verify DNS configuration
- Install Certbot
- Generate Let’s Encrypt SSL certificates
- Update nginx configuration
- Configure automatic certificate renewal
- Restart Dograh services
https://voice.yourcompany.com.
If you prefer to set things up manually, continue with the steps below.
Manual Setup
If you prefer to configure everything manually, follow these steps instead of using the automated script.Install Certbot
Certbot is the official Let’s Encrypt client that automates SSL certificate generation. Ubuntu/Debian:Stop Dograh Services
Before generating certificates, stop the running Dograh services to free up port 80:Generate SSL Certificates
Run Certbot to obtain SSL certificates for your domain:voice.yourcompany.com with your actual domain name.
Certbot will:
- Verify that you control the domain
- Generate SSL certificates
- Store them in
/etc/letsencrypt/archive/voice.yourcompany.com/
You’ll be prompted to enter an email address for renewal notifications and agree to the terms of service.
Copy Certificates to Dograh Directory
Copy the generated certificates to the dograh certs directory:Update nginx Configuration
Update the nginx configuration to use your domain name. Open the nginx configuration file:server_name directive with your domain:
Start Dograh Services
Start Dograh with the updated configuration:Access Your Application
Your application is now available at:Set Up Certificate Renewal
Let’s Encrypt certificates expire after 90 days. Set up automatic renewal. Create a renewal hook script that copies the new certificates:Troubleshooting
Certificate Generation Fails
If Certbot fails to generate certificates:- Port 80 blocked: Ensure port 80 is open in your firewall and no service is using it
- DNS not propagated: Wait for DNS changes to propagate and verify with
nslookup - Rate limits: Let’s Encrypt has rate limits. If you’ve exceeded them, wait before retrying
SSL Certificate Errors in Browser
If you see SSL errors after setup:- Verify the certificates were copied correctly:
ls -la dograh/certs/ - Check that
nginx.confpoints to/etc/nginx/certs/local.crtand/etc/nginx/certs/local.key - Restart the nginx container:
sudo docker compose --profile remote restart nginx
WebRTC Connection Issues
If voice calls don’t connect after domain setup:- Ensure TCP/UDP ports 3478, 5349, and UDP 49152-49200 are still open
- Update the
.envfile with your domain name if needed for TURN server configuration