๐Ÿ“ฆ kurokobo / caddy-dns-azure

Caddy module: dns.providers.azure

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/kurokobo/caddy-dns-azure.git
HTTPS git clone https://github.com/kurokobo/caddy-dns-azure.git
SSH git clone git@github.com:kurokobo/caddy-dns-azure.git
CLI gh repo clone kurokobo/caddy-dns-azure
kurokobo kurokobo Update README.md 04d0a7c 4 years ago ๐Ÿ“ History
๐Ÿ“‚ 04d0a7c740b55f23e06cd8b463c09fb70eeac2c4 View all commits โ†’
๐Ÿ“„ azure.go
๐Ÿ“„ go.mod
๐Ÿ“„ go.sum
๐Ÿ“„ README.md
๐Ÿ“„ README.md

Azure DNS module for Caddy ===========================

UPDATE: This project has been moved to caddy-dns/azure and this repository is no longer maintained. See caddy-dns/azure for the latest release.

This package contains a DNS provider module for Caddy. It can be used to manage DNS records in Azure DNS Hosted zones.

Caddy module name

dns.providers.azure

Authenticating

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

Building

To compile this Caddy module, follow the steps describe at the Caddy Build from Source instructions and import the github.com/kurokobo/caddy-dns-azure plugin

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": "azure",
        "tenant_id": "{env.AZURE_TENANT_ID}",
        "client_id": "{env.AZURE_CLIENT_ID}",
        "client_secret": "{env.AZURE_CLIENT_SECRET}",
        "subscription_id": "{env.AZURE_SUBSCRIPTION_ID}",
        "resource_group_name": "{env.AZURE_RESOURCE_GROUP_NAME}",
      }
    }
  }
}

or with the Caddyfile:

tls {
  dns azure {
    tenant_id {$AZURE_TENANT_ID}
    client_id {$AZURE_CLIENT_ID}
    client_secret {$AZURE_CLIENT_SECRET}
    subscription_id {$AZURE_SUBSCRIPTION_ID}
    resource_group_name {$AZURE_RESOURCE_GROUP_NAME}
  }
}

You can replace {$*} or {env.*} with the actual values if you prefer to put it directly in your config instead of an environment variable.