Browse Source
reverseproxy: Add 'tls' option to enable HTTPS with HTTP transport
master
Matthew Holt
5 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
5 additions and
0 deletions
-
modules/caddyhttp/reverseproxy/caddyfile.go
|
|
@ -419,6 +419,11 @@ func (h *HTTPTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { |
|
|
|
h.TLS.ClientCertificateFile = args[0] |
|
|
|
h.TLS.ClientCertificateKeyFile = args[1] |
|
|
|
|
|
|
|
case "tls": |
|
|
|
if h.TLS == nil { |
|
|
|
h.TLS = new(TLSConfig) |
|
|
|
} |
|
|
|
|
|
|
|
case "tls_insecure_skip_verify": |
|
|
|
if d.NextArg() { |
|
|
|
return d.ArgErr() |
|
|
|