Browse Source

Improve the reverse-proxy CLI --to flag help message (#4535)

master
Vojtech Vitek 3 years ago
committed by GitHub
parent
commit
94035c1797
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/caddyhttp/reverseproxy/command.go

2
modules/caddyhttp/reverseproxy/command.go

@ -57,7 +57,7 @@ default, all incoming headers are passed through unmodified.)
Flags: func() *flag.FlagSet {
fs := flag.NewFlagSet("reverse-proxy", flag.ExitOnError)
fs.String("from", "localhost", "Address on which to receive traffic")
fs.String("to", "", "Upstream address to which to to proxy traffic")
fs.String("to", "", "Upstream address to which traffic should be sent")
fs.Bool("change-host-header", false, "Set upstream Host header to address of upstream")
fs.Bool("insecure", false, "Disable TLS verification (WARNING: DISABLES SECURITY BY NOT VERIFYING SSL CERTIFICATES!)")
return fs

Loading…
Cancel
Save