Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
reverseproxy: Add 'tls' option to enable HTTPS with HTTP transport
Matthew Holt committed
Sep 11, 2019 at 18:46 UTC
194df652eb9d92bcc61d83055aebe176adc8fa2d
1 file changed
+5
modules/caddyhttp/reverseproxy/caddyfile.go
+5
@@ -419,6 +419,11 @@ func (h *HTTPTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
419
h.TLS.ClientCertificateFile = args[0]
420
h.TLS.ClientCertificateKeyFile = args[1]
421
422
+ case "tls":
423
+ if h.TLS == nil {
424
+ h.TLS = new(TLSConfig)
425
+ }
426
+
427
case "tls_insecure_skip_verify":
428
if d.NextArg() {
429
return d.ArgErr()