Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caddyserver/dnsproviders
OBSOLETE: DNS providers adapted for use in Caddy to solve the ACME DNS challenge - for Caddy v1 only. See caddy-dns for v2.
https://github.com/caddyserver/dnsproviders
acme caddy dns-challenge dns-provider tls
Last synced: 11 days ago
JSON representation
OBSOLETE: DNS providers adapted for use in Caddy to solve the ACME DNS challenge - for Caddy v1 only. See caddy-dns for v2.
- Host: GitHub
- URL: https://github.com/caddyserver/dnsproviders
- Owner: caddyserver
- License: mit
- Archived: true
- Created: 2016-06-01T17:07:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-18T02:45:26.000Z (over 4 years ago)
- Last Synced: 2024-10-29T02:19:18.808Z (17 days ago)
- Topics: acme, caddy, dns-challenge, dns-provider, tls
- Language: Go
- Homepage: https://github.com/caddy-dns
- Size: 94.7 KB
- Stars: 98
- Watchers: 8
- Forks: 56
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DNS providers for Caddy v1 (obsolete)
=====================================**⚠️ This repo is for Caddy v1, which has been obsoleted by Caddy 2.**
[Caddy 2 also supports the DNS challenge](https://caddyserver.com/docs/automatic-https#dns-challenge) in a similar way to v1, but [using backwards-incompatible APIs](https://github.com/caddy-dns) that are much more flexible and easier to use. This repository is no longer relevant or maintained.
Migrating to the new APIs is solely a community effort. [It is very easy to implement a provider](https://caddy.community/t/writing-new-dns-provider-modules-for-caddy/7786) if you know Go!
**Version 2 resources:**
- [How to use DNS providers in Caddy 2](https://caddy.community/t/how-to-use-dns-provider-modules-in-caddy-2/8148)
- [Implementing a new DNS provider for Caddy 2](https://caddy.community/t/writing-new-dns-provider-modules-for-caddy/7786)
- [libdns packages](https://github.com/libdns) (underlying provider implementations)
- [caddy-dns packages](https://github.com/caddy-dns) (small wrappers over libdns providers that convert them into Caddy modules)
- [Temporary module shim](https://github.com/caddy-dns/lego-deprecated) (supports all of lego's 75+ DNS providers)Old readme (for v1)
===================These providers can be used to help solve the ACME DNS challenge by plugging them into Caddy 0.9-1.x:
```go
import _ "github.com/caddyserver/dnsproviders/"
```You can then use this in your Caddyfile with the `tls` directive like so:
```plain
tls {
dns
}
```Credentials for your DNS provider should be set in environment variables. This information is in the [Automatic HTTPS](https://caddyserver.com/docs/automatic-https#dns-challenge) page of the Caddy documentation. For more information about using your DNS provider, see [the docs for your provider](https://godoc.org/github.com/go-acme/lego/providers/dns) directly.
If you specify a DNS provider, the DNS challenge will be used exclusively; other challenge types will be disabled. Be aware that some DNS providers may be slow in applying changes.
## About these packages
Caddy 0.9 and newer supports solving the ACME DNS challenge. This challenge is unique because the server that is requesting a TLS certificate does not need to start a listener and be accessible from external networks. This quality is essential when behind load balancers or in other advanced networking scenarios.
The DNS challenge sets a DNS record and the ACME server verifies its correctness in order to issue the certificate. Caddy can do this for you automatically, but it needs credentials to your DNS provider to do so. Since every DNS provider is different, we have these adapters you can plug into Caddy in order to complete this challenge.
The underlying logic that actually solves the challenge is implemented in a different package not far away from here. Caddy uses [go-acme/lego](https://github.com/go-acme/lego), a library originally written for use in Caddy, to solve ACME challenges. If you wish to add a new provider, see the documentation for that library and write your own provider implementation. Then writing the adapter for Caddy is very easy: just copy+paste any of these existing ones, replace the names and tweak a few things, and submit a pull request. Done!