Browse Source

reverseproxy: Add tls_server_name option to Caddyfile (#3322)

master
Francis Lavoie 5 years ago
committed by GitHub
parent
commit
afecd90a6c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      modules/caddyhttp/reverseproxy/caddyfile.go

10
modules/caddyhttp/reverseproxy/caddyfile.go

@ -670,6 +670,16 @@ func (h *HTTPTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
h.TLS.RootCAPEMFiles = args h.TLS.RootCAPEMFiles = args
case "tls_server_name":
if !d.NextArg() {
return d.ArgErr()
}
if h.TLS == nil {
h.TLS = new(TLSConfig)
}
h.TLS.ServerName = d.Val()
case "keepalive": case "keepalive":
if !d.NextArg() { if !d.NextArg() {
return d.ArgErr() return d.ArgErr()

Loading…
Cancel
Save