Skip to content

caddy-dns/porkbun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Porkbun module for Caddy

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

Caddy module name

dns.providers.porkbun

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": "porkbun",
				"api_key": "{env.PORKBUN_API_KEY}",
        		"api_secret_key": "{env.PORKBUN_API_SECRET_KEY}"
			}
		}
	}
}

or with the Caddyfile:

# globally
{
	acme_dns porkbun {
			api_key {env.PORKBUN_API_KEY}
			api_secret_key {env.PORKBUN_API_SECRET_KEY}
	}
}
# one site
tls {
	dns porkbun {
			api_key {env.PORKBUN_API_KEY}
			api_secret_key {env.PORKBUN_API_SECRET_KEY}
	}
}