Custom Domains
Configure custom domains and SSL certificates for your Elk-hosted applications using our CLI or dashboard.
1. Domain Configuration
To add a custom domain to your Elk application, follow these steps:
Using the CLI
elk domains add example.com --app your-app-name
This command will automatically provision an SSL certificate via Let's Encrypt.
2. DNS Configuration
Update your domain's DNS records to point to Elk:
- Log in to your domain registrar's control panel
- Create an
A record
pointing to192.0.2.1
- Create a
CNAME record
forwww
pointing toelk.dev
Verification Process
Elk will verify domain ownership via DNS TXT record. You'll see a prompt like:
Please add this TXT record to verify ownership: Name: _acme_challenge.example.com Value: 4jI9aX32tL8vqRF7GZmL4x7sD6v3k8m
3. SSL Certificates
Elk automatically provisions SSL certificates via Let's Encrypt for all configured domains. You can manage certificates in the dashboard:
- • Automatic renewal every 90 days
- • HTTPS enforcement
- • Custom certificate uploads available for enterprise users
Force HTTPS
elk domains enforce-https example.com --app your-app-name
This will redirect all HTTP requests to the HTTPS version of your domain.
Wildcard Domains
Wildcard domain support is available for enterprise plans. To configure:
elk domains add *.example.com --app your-app-name
DNS Requirements
For wildcard domains, you'll need to add a wildcard A record:
*.example.com → 192.0.2.1
Common Issues
Troubleshooting: If your custom domain isn't working, verify that:
- • DNS propagation is complete (can take up to 48 hours)
- • TXT/CAA records are correctly configured
- • Your domain is correctly pointed to Elk's servers
Contact support if issues persist.
Related Guides
Need Help?
Our documentation team is available to help with custom domain configurations or any other deployment needs.
Join the Community