mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 13:43:47 +03:00
reverseproxy: Add tls_server_name option to Caddyfile (#3322)
This commit is contained in:
parent
2f59467ac3
commit
afecd90a6c
1 changed files with 10 additions and 0 deletions
|
@ -670,6 +670,16 @@ func (h *HTTPTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
|||
|
||||
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":
|
||||
if !d.NextArg() {
|
||||
return d.ArgErr()
|
||||
|
|
Loading…
Reference in a new issue