This package contains a DNS provider module for Caddy. It can be used to manage DNS records with porkbun.
dns.providers.porkbun
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": "porkbun",
"api_key": "YOUR_PROVIDER_API_TOKEN",
"secret_api_key": "SECRET_API_TOKEN"
}
}
}
}
or with the Caddyfile:
# globally
{
acme_dns porkbun {
api_key pk..
secret_api_key sk..
}
}
# one site
tls {
dns porkbun {
api_key pk..
secret_api_key sk..
}
}