Skip to main content

Automated encryption (SSL/TLS)

From the service dashboard, click on "Security" tab, then click on "Manage SSL Domains"

image-1643091885361.png

From there you can manage allowed domains for SSL. If you want to add a new domain, juste type it and press enter to add it to the list of authorized domains. You will also need to create a DNS entry to point your domain to the IP address of your service.

You can either create a A record or CNAME record to point to your service. CNAME is prefered as it won't change even if your IP change (eg: this can happen if your clone/migrate your service to another provider.

Once added, you can verify if your DNS entry is propagated with a tool like https://dnschecker.org/

Once propagated SSL should work instantly on your service. Certificate will be automatically generated and renewed.

 

Cloudflare users

If you are using cloudflare, you should not enable reverse proxy (orange cloud) on your DNS entries or else it will prevent SSL certificate creation/renewal process from Elestio with Letsencrypt.

If you still want to use cloudflare with orange cloud, you should do this to disable elestio SSL for your custom domain:

1) Connect to the VM with SSH and type this:
nano /opt/elestio/nginx/.env

there remove your domain from the first line and save with CTRL+X

then type this command:
cd /opt/elestio/nginx;
docker-compose down;
docker-compose up -d;

after that nginx won't try again to obtain an SSL certificate for your domain and your site will use only the SSL from cloudflare.