2023-11-15 05:00:48 +00: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:
|
|
|
|
|
|
|
|
```
|
2023-12-16 15:39:42 +00:00
|
|
|
{
|
|
|
|
acme_dns porkbun {
|
|
|
|
api_key {env.PORKBUN_API_KEY}
|
|
|
|
api_secret_key {env.PORKBUN_API_SECRET_KEY}
|
|
|
|
}
|
2023-11-15 05:00:48 +00:00
|
|
|
}
|
|
|
|
```
|