mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
reverseproxy: Add 'tls' option to enable HTTPS with HTTP transport
This commit is contained in:
parent
53bbdf1766
commit
194df652eb
@ -419,6 +419,11 @@ func (h *HTTPTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
|||||||
h.TLS.ClientCertificateFile = args[0]
|
h.TLS.ClientCertificateFile = args[0]
|
||||||
h.TLS.ClientCertificateKeyFile = args[1]
|
h.TLS.ClientCertificateKeyFile = args[1]
|
||||||
|
|
||||||
|
case "tls":
|
||||||
|
if h.TLS == nil {
|
||||||
|
h.TLS = new(TLSConfig)
|
||||||
|
}
|
||||||
|
|
||||||
case "tls_insecure_skip_verify":
|
case "tls_insecure_skip_verify":
|
||||||
if d.NextArg() {
|
if d.NextArg() {
|
||||||
return d.ArgErr()
|
return d.ArgErr()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user