This package contains a DNS provider module for Caddy. It can be used to manage DNS records in Google Cloud DNS zones.
dns.providers.googleclouddns
See the associated README in the libdns package for important information about credentials.
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
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.