/directadmin

Primary LanguageGoMIT LicenseMIT

DirectAdmin module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records with DirectAdmin.

Caddy module name

dns.providers.directadmin

Config examples

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": "directadmin",
                "host": "https://da.domain.com:2222",
                "user": "admin",
                "login_key": "MySecretKey",
                "insecure_requests": "true/false"
            }
        }
    }
}

or with the Caddyfile:

# globally
{
    acme_dns directadmin {
        host "https://da.domain.com:2222"
        user "admin"
        login_key "MySecretKey"
        insecure_requests "false"
    }
}
# one site
secure.domain.com {
    tls {
        dns directadmin {
            host "https://da.domain.com:2222"
            user "admin"
            login_key "MySecretKey"
            insecure_requests "false"
        }
    }
}