Skip to content

KeisukeYamashita/caddy-sakura

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sakura module for Caddy

Sakura module contains a DNS provider for Caddy.

How to use

Build your Caddy image containing this module:

xcaddy build
    --with github.com/KeisukeYamashita/caddy-sakura/provider

Configuration

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Releases

No releases published

Languages