caiych / porkbun-caddy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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": "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..
	}
}

About

License:MIT License


Languages

Language:Go 100.0%