This package contains a DNS provider module for Caddy. It can be used to manage DNS records with Liara.
dns.providers.liara
Important
Obtain your api-key from Liara's console.
To use this module for the ACME DNS challenge, configure the ACME issuer in your Caddy JSON like so:
{
"module": "acme",
"challenges": {
"dns": {
"provider": {
"name": "liara",
"api_token": "secret"
"ttl": 120,
}
}
}
}or with the Caddyfile:
# one site
tls {
dns liara <api-token>
dns_ttl 120s
}
Warning
Always set the ttl parameter, as Liara's api only accept certain TTL values. Pick one of these [120, 180, 300, 600, 900].
Important
You can use the OS environment variables in the Caddyfile. Here is how