wdq / googleclouddns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Cloud DNS module for Caddy

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

Caddy module name

dns.providers.googleclouddns

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/caddy-dns/googleclouddns 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": "googleclouddns",
        "gcp_project": "{env.GCP_PROJECT}",
      }
    }
  }
}

or with the Caddyfile:

tls {
  dns googleclouddns {
    gcp_project {$GCP_PROJECT}
  }
}

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

About

License:MIT License


Languages

Language:Go 100.0%