add rpc_upgrade_mode as config option for tls upgrades

This commit is contained in:
Chelsea Holland Komlo
2017-10-25 13:59:08 -04:00
committed by Preetha Appan
parent 781e70ff3a
commit 5e85b5a090
6 changed files with 101 additions and 3 deletions

View File

@@ -152,6 +152,7 @@ tls {
ca_file = "foo"
cert_file = "bar"
key_file = "pipe"
rpc_upgrade_mode = true
verify_https_client = true
}
sentinel {

View File

@@ -771,6 +771,7 @@ func parseTLSConfig(result **config.TLSConfig, list *ast.ObjectList) error {
"http",
"rpc",
"verify_server_hostname",
"rpc_upgrade_mode",
"ca_file",
"cert_file",
"key_file",

View File

@@ -172,6 +172,7 @@ func TestConfig_Parse(t *testing.T) {
CAFile: "foo",
CertFile: "bar",
KeyFile: "pipe",
RPCUpgradeMode: true,
VerifyHTTPSClient: true,
},
HTTPAPIResponseHeaders: map[string]string{