mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-28 04:45:56 +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
|
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…
Reference in a new issue