Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

caddy-dns/alidns

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alibaba Cloud DNS (AliDNS) module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records with Alibaba Cloud (as is Aliyun,aliyun or ALIYUN) accounts.

Caddy module name

dns.providers.alidns

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": "alidns",
        "access_key_id":"YOUR_ALIYUN_ACCESS_KEY_ID",
        "access_key_secret":"YOUR_ALIYUN_ACCESS_KEY_SECRET"
      }
    }
  }
}

or with the Caddyfile:

# globally

acme_dns alidns {
  access_key_id {env.ALIYUN_ACCESS_KEY_ID}
  access_key_secret {env.ALIYUN_ACCESS_KEY_SECRET}
}
# one site

tls {
  dns alidns {
    access_key_id {env.ALIYUN_ACCESS_KEY_ID}
    access_key_secret {env.ALIYUN_ACCESS_KEY_SECRET}
  }
}

If you have SecurityToken for aliyun's STS authorization you can configure like:

{
  "module": "acme",
  "challenges": {
    "dns": {
      "provider": {
        "name": "alidns",
        "access_key_id":"YOUR_ALIYUN_ACCESS_KEY_ID",
        "access_key_secret":"YOUR_ALIYUN_ACCESS_KEY_SECRET",
        "security_token": "YOU_ALIYUN_SECURITY_TOKEN"
      }
    }
  }
}

or with the Caddyfile:

# globally

acme_dns alidns {
  access_key_id {env.ALIYUN_ACCESS_KEY_ID}
  access_key_secret {env.ALIYUN_ACCESS_KEY_SECRET}
  security_token {env.ALIYUN_SECURITY_TOKEN}
}
# one site

tls {
  dns alidns {
    access_key_id {env.ALIYUN_ACCESS_KEY_ID}
    access_key_secret {env.ALIYUN_ACCESS_KEY_SECRET}
    security_token {env.ALIYUN_SECURITY_TOKEN}
  }
}

You can replace {env.ALIYUN_ACCESS_KEY_ID},{env.ALIYUN_ACCESS_KEY_SECRET},{env.ALIYUN_SECURITY_TOKEN} with the actual auth token in the "" if you prefer to put it directly in your config instead of an environment variable.

Authenticating

See the associated README in the libdns package for important information about credentials.

About

Caddy module: dns.providers.alidns

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.