Custom domain and automated encryption (SSL/TLS)

Prerequisites

If the firewall is enabled on your service, ensure that port 80 is open. This is required for SSL certificate creation and renewal.


Accessing the Configuration
  1. Go to the Overview tab of your service dashboard.

  2. Locate the Custom Domain Names section inside the Domain Management tab.

  3. Click Manage Domains.

image.png

In this section, you will have two ways to configure custom domains.


Method 1: Manual DNS Setup

image.png

  1. In this step, enter your domain and press Enter to add it to the list of authorized domains.

  2. Configure DNS records in your domain registrar panel.

Required DNS Records

  1. Verify DNS propagation using a tool like: https://dnschecker.org/

Once propagation is complete, the SSL certificate will be automatically generated and renewed, and HTTPS will start working.


Method 2: One-Click DNS Setup via Cloudflare (Domain Connect)

A One-click DNS Setup section is available if the domain name server or registrar is Cloudflare, allowing automatic DNS configuration via the Domain Connect protocol.

image.png

Steps
  1. Enter your domain (e.g. example.com).

  2. Click Connect Domain.

  3. This action will redirect you to the Cloudflare dashboard for accepting the DNS record configuration.


Environment Variable Update

Some applications require updating an environment variable to reflect the configured domain.

image.png

To update:

  1. Go to the Overview page of your service.

  2. Click the Update Config tab in the software row.

  3. Open the Env tab.

  4. Update the domain-related environment variable.


Cloudflare Reverse Proxy Users

If you are using method 1 and want Cloudflare with the proxy enabled (orange cloud icon), refer to the detailed guide:

https://docs.elest.io/books/security/page/using-cloudflare


Troubleshooting: SSL Not Generated

View Nginx Logs

You can inspect logs using a terminal command:

cd /opt/elestio/nginx;
docker-compose logs -f;

Press Ctrl + C to stop live log output.


Reset SSL Data Folder

In some cases, the SSL data directory /opt/elestio/nginx/ssl_data may become corrupted:

To fix:

  1. Connect to your service via terminal.

  2. Run the below command.

cd /opt/elestio/nginx/;
docker-compose down;
mv ./ssl_data/ ./ssl_data_old/;
mkdir ./ssl_data/;
chmod 777 ./ssl_data/;
docker-compose up -d

Once executed, just open your custom website URL again, and your certificate should be generated and your site served over SSL/TLS.


Revision #8
Created 2026-04-09 06:48:24 UTC by Amit Shukla
Updated 2026-04-16 06:04:50 UTC by Amit Shukla