Elk

Custom Domains

Configure custom domains and SSL certificates for your Elk-hosted applications using our CLI or dashboard.

Documentation Custom Domains

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:

  1. Log in to your domain registrar's control panel
  2. Create an A record pointing to 192.0.2.1
  3. Create a CNAME record for www pointing to elk.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:

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

SSL/TLS Configuration

Manage certificates and encryption settings for custom domains

View Guide

DNS Troubleshooting

Common issues and solutions for domain configuration

View Guide

Need Help?

Our documentation team is available to help with custom domain configurations or any other deployment needs.

Join the Community