Skip to main content

Secret TLS

To add an SSL Certificate you must create a secret.

Manual Setup

tip

You can create secrets directly from a deployment Statefile!
But we recommend you to use Secret kind of Statefile and manage them separatly.

There is an Statefile example on how to do it:


Automatic with Let's Encrypt

You can use certbot to generate a certificate for your domain.
To do so we crafted a generic Statefile for you that can handle the job and create a proper secret.
The secret will be named as follow: cert.{domain_name}.

nanocl state apply -fs nhnr.io/v0.15/sys/certbot.yml -- --email [email protected] --domain deploy-example.com

After the command finished Ssl will be enabled already but you need to update your ProxyRule.
To use the secret for your next deployment:


For more information about secrets refer to our secret reference