mirror of
https://github.com/go-acme/lego.git
synced 2024-12-25 11:02:56 +02:00
feat(cli): add environment variable for specifying alternate directory URL (#2061)
This commit is contained in:
parent
3ba40ff7da
commit
c847ac4a4c
@ -18,6 +18,7 @@ func CreateFlags(defaultPath string) []cli.Flag {
|
||||
&cli.StringFlag{
|
||||
Name: "server",
|
||||
Aliases: []string{"s"},
|
||||
EnvVars: []string{"LEGO_SERVER"},
|
||||
Usage: "CA hostname (and optionally :port). The server certificate must be trusted in order to avoid further modifications to the client.",
|
||||
Value: lego.LEDirectoryProduction,
|
||||
},
|
||||
|
@ -20,7 +20,7 @@ COMMANDS:
|
||||
|
||||
GLOBAL OPTIONS:
|
||||
--domains value, -d value [ --domains value, -d value ] Add a domain to the process. Can be specified multiple times.
|
||||
--server value, -s value CA hostname (and optionally :port). The server certificate must be trusted in order to avoid further modifications to the client. (default: "https://acme-v02.api.letsencrypt.org/directory")
|
||||
--server value, -s value CA hostname (and optionally :port). The server certificate must be trusted in order to avoid further modifications to the client. (default: "https://acme-v02.api.letsencrypt.org/directory") [$LEGO_SERVER]
|
||||
--accept-tos, -a By setting this flag to true you indicate that you accept the current Let's Encrypt terms of service. (default: false)
|
||||
--email value, -m value Email used for registration and recovery contact.
|
||||
--csr value, -c value Certificate signing request filename, if an external CSR is to be used.
|
||||
|
Loading…
Reference in New Issue
Block a user