mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
Improve docs for ZeroSSL issuer
This commit is contained in:
parent
d26559316f
commit
b9618b8b98
@ -36,12 +36,20 @@ func init() {
|
|||||||
caddy.RegisterModule(new(ZeroSSLIssuer))
|
caddy.RegisterModule(new(ZeroSSLIssuer))
|
||||||
}
|
}
|
||||||
|
|
||||||
// ZeroSSLIssuer makes an ACME manager
|
// ZeroSSLIssuer makes an ACME issuer for getting certificates
|
||||||
// for managing certificates using ACME.
|
// from ZeroSSL by automatically generating EAB credentials.
|
||||||
|
// Please be sure to set a valid email address in your config
|
||||||
|
// so you can access/manage your domains in your ZeroSSL account.
|
||||||
|
//
|
||||||
|
// This issuer is only needed for automatic generation of EAB
|
||||||
|
// credentials. If manually configuring/reusing EAB credentials,
|
||||||
|
// the standard ACMEIssuer may be used if desired.
|
||||||
type ZeroSSLIssuer struct {
|
type ZeroSSLIssuer struct {
|
||||||
*ACMEIssuer
|
*ACMEIssuer
|
||||||
|
|
||||||
// The API key (or "access key") for using the ZeroSSL API.
|
// The API key (or "access key") for using the ZeroSSL API.
|
||||||
|
// This is optional, but can be used if you have an API key
|
||||||
|
// already and don't want to supply your email address.
|
||||||
APIKey string `json:"api_key,omitempty"`
|
APIKey string `json:"api_key,omitempty"`
|
||||||
|
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
@ -193,9 +201,9 @@ func (iss *ZeroSSLIssuer) Revoke(ctx context.Context, cert certmagic.Certificate
|
|||||||
|
|
||||||
// UnmarshalCaddyfile deserializes Caddyfile tokens into iss.
|
// UnmarshalCaddyfile deserializes Caddyfile tokens into iss.
|
||||||
//
|
//
|
||||||
// ... zerossl [<api_key>] {
|
// ... zerossl [<api_key>] {
|
||||||
// ...
|
// ...
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// Any of the subdirectives for the ACME issuer can be used in the block.
|
// Any of the subdirectives for the ACME issuer can be used in the block.
|
||||||
func (iss *ZeroSSLIssuer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
func (iss *ZeroSSLIssuer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user