diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-11 18:46:32 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-11 18:46:32 -0600 |
commit | 194df652eb9d92bcc61d83055aebe176adc8fa2d (patch) | |
tree | d64f17e4ba8d00efd09f6b1a54c3d3973b82563c /modules/caddyhttp | |
parent | 53bbdf17665a34831b32154a2ab7d33ba065743f (diff) |
reverseproxy: Add 'tls' option to enable HTTPS with HTTP transport
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r-- | modules/caddyhttp/reverseproxy/caddyfile.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/caddyfile.go b/modules/caddyhttp/reverseproxy/caddyfile.go index 56b3a5a..3c02bf1 100644 --- a/modules/caddyhttp/reverseproxy/caddyfile.go +++ b/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() |