forked from TrueCloudLab/lego
Allow the user to override the challenge port. Enables running as non-root.
This commit is contained in:
parent
805cef4dd6
commit
8f992218b9
4 changed files with 10 additions and 6 deletions
8
cli.go
8
cli.go
|
@ -94,10 +94,6 @@ func main() {
|
|||
Value: "https://www.letsencrypt-demo.org/acme/new-reg",
|
||||
Usage: "CA hostname (and optionally :port). The server certificate must be trusted in order to avoid further modifications to the client.",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "authkey, k",
|
||||
Usage: "Path to the authorized key file",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "email, m",
|
||||
Usage: "Email used for registration and recovery contact.",
|
||||
|
@ -120,6 +116,10 @@ func main() {
|
|||
Usage: "Directory to use for storing the data",
|
||||
Value: defaultPath,
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "port",
|
||||
Usage: "Challenges will use this port to listen on. Please make sure to forward port 443 to this port on your machine. Otherwise use setcap on the binary",
|
||||
},
|
||||
}
|
||||
|
||||
app.Run(os.Args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue