diff options
author | Bas Westerbaan <[email protected]> | 2024-01-13 21:56:23 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-13 20:56:23 +0000 |
commit | f658fd05ace8f01727bc733e46657d2f6218db87 (patch) | |
tree | e036bf7bac64d0cfad8d8745a83e1f90541024d1 /modules/caddyhttp/reverseproxy/caddyfile.go | |
parent | cc0c0cf03e3ebdd1377aaa0b8ad6c0b39e880955 (diff) | |
download | caddy-f658fd05ace8f01727bc733e46657d2f6218db87.tar.gz caddy-f658fd05ace8f01727bc733e46657d2f6218db87.zip |
reverseproxy: Add `tls_curves` option to HTTP transport (#5851)
Diffstat (limited to 'modules/caddyhttp/reverseproxy/caddyfile.go')
-rw-r--r-- | modules/caddyhttp/reverseproxy/caddyfile.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/caddyfile.go b/modules/caddyhttp/reverseproxy/caddyfile.go index bcbe74419..4e01c7a1b 100644 --- a/modules/caddyhttp/reverseproxy/caddyfile.go +++ b/modules/caddyhttp/reverseproxy/caddyfile.go @@ -1072,6 +1072,16 @@ func (h *HTTPTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { } h.TLS.InsecureSkipVerify = true + case "tls_curves": + args := d.RemainingArgs() + if len(args) == 0 { + return d.ArgErr() + } + if h.TLS == nil { + h.TLS = new(TLSConfig) + } + h.TLS.Curves = args + case "tls_timeout": if !d.NextArg() { return d.ArgErr() |