Build your Caddy image containing this module:
xcaddy build
--with github.com/KeisukeYamashita/caddy-sakura/provider
To use this module for ACME DNS challenge, configure the Caddy JSON as below:
{
"module": "acme",
"challenges": {
"dns": {
"provider": {
"name": "caddy",
"api_secret": "xxx", // optional
"api_token": "xxx" // optional
}
}
}
}
Or either you can use the Caddyfile:
tls {
dns sakura {
api_token "xxx" // optional
api_secret "xxx" // optional
}
}
Note
If you don't provide api_token
and api_secret
, the module will try to read them from the environment variables SAKURACLOUD_ACCESS_TOKEN
and SAKURACLOUD_ACCESS_TOKEN_SECRET
.
Note that the environment variables have low priority than the Caddyfile configuration.
This project is licensed under the MIT License - see the LICENSE file for details.