No description
Find a file
Niall Fitzpatrick ce0d8d12ed
fix: update libdns/porkbun to v1.0.1 (#27)
* chore: update libdns/porkbun to v1.0.1

* chore: go.sum changes
2025-05-09 20:38:22 +01:00
.github chore: Add CI workflow and more tests (#26) 2025-05-08 21:37:53 +01:00
.gitignore chore: update to libdns/porkbun v0.1.2 (#6) 2023-09-06 20:06:42 +01:00
go.mod fix: update libdns/porkbun to v1.0.1 (#27) 2025-05-09 20:38:22 +01:00
go.sum fix: update libdns/porkbun to v1.0.1 (#27) 2025-05-09 20:38:22 +01:00
LICENSE Initial version 2022-10-11 00:24:52 +01:00
module.go Trim whitespace after replacing placeholders (#14) 2024-10-16 23:18:49 +01:00
module_test.go chore: Add CI workflow and more tests (#26) 2025-05-08 21:37:53 +01:00
README.md Update README.md to reflect Porkbun hostname depreciation 2024-11-05 22:00:44 +00:00

Porkbun module for Caddy

===========================

⚠️ Porkbun API hostname change ⚠️

This module has been swapped to the updated API hostname as of V0.20. Versions prior to this will cease to function when the old endpoint is disabled on 01/12/2024.

About

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}
	}
}