acme-api -> acme-api-endpoint

This commit is contained in:
6543 2021-12-04 21:21:27 +01:00
parent 97d4ea9d6b
commit b28204a468
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ var ServeFlags = []cli.Flag{
// ACME // ACME
&cli.StringFlag{ &cli.StringFlag{
Name: "acme-api", Name: "acme-api-endpoint",
EnvVars: []string{"ACME_API"}, EnvVars: []string{"ACME_API"},
Value: "https://acme-v02.api.letsencrypt.org/directory", Value: "https://acme-v02.api.letsencrypt.org/directory",
}, },

View file

@ -42,7 +42,7 @@ func Serve(ctx *cli.Context) error {
listeningAddress := fmt.Sprintf("%s:%s", ctx.String("host"), ctx.String("port")) listeningAddress := fmt.Sprintf("%s:%s", ctx.String("host"), ctx.String("port"))
enableHTTPServer := ctx.Bool("enable-http-server") enableHTTPServer := ctx.Bool("enable-http-server")
acmeAPI := ctx.String("acme-api") acmeAPI := ctx.String("acme-api-endpoint")
acmeMail := ctx.String("acme-email") acmeMail := ctx.String("acme-email")
acmeUseRateLimits := ctx.Bool("acme-use-rate-limits") acmeUseRateLimits := ctx.Bool("acme-use-rate-limits")
acmeAcceptTerms := ctx.Bool("acme-accept-terms") acmeAcceptTerms := ctx.Bool("acme-accept-terms")