A Caddy Docker container with the Porkbun DNS plugin installed
Find a file
William Brawner d2fbc5f113
All checks were successful
Publish Docker image / Push Docker image to Forgejo Packages (push) Successful in 18m54s
Update build process to use forgejo
2024-11-05 22:22:38 -07:00
.forgejo/workflows Update build process to use forgejo 2024-11-05 22:22:38 -07:00
Dockerfile Update build process to use forgejo 2024-11-05 22:22:38 -07:00
README.md Update Caddyfile instructions 2023-12-16 08:39:42 -07:00

Caddy with Porkbun DNS Plugin

Usage

Make sure to set the PORKBUN_API_KEY and PORKBUN_API_SECRET_KEY environment variables to the corresponding values.

Then add the appropriate Caddy json config:

{
  "module": "acme",
  "challenges": {
    "dns": {
      "provider": {
        "name": "porkbun",
        "api_key": "{env.PORKBUN_API_KEY}",
	    "api_secret_key": "{env.PORKBUN_API_SECRET_KEY}"
      }
    }
  }
}

or Caddyfile equivalent:

{
    acme_dns porkbun {
        api_key {env.PORKBUN_API_KEY}
        api_secret_key {env.PORKBUN_API_SECRET_KEY}
    }
}