mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
add rpc_upgrade_mode as config option for tls upgrades
This commit is contained in:
committed by
Preetha Appan
parent
781e70ff3a
commit
5e85b5a090
@@ -152,6 +152,7 @@ tls {
|
||||
ca_file = "foo"
|
||||
cert_file = "bar"
|
||||
key_file = "pipe"
|
||||
rpc_upgrade_mode = true
|
||||
verify_https_client = true
|
||||
}
|
||||
sentinel {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -172,6 +172,7 @@ func TestConfig_Parse(t *testing.T) {
|
||||
CAFile: "foo",
|
||||
CertFile: "bar",
|
||||
KeyFile: "pipe",
|
||||
RPCUpgradeMode: true,
|
||||
VerifyHTTPSClient: true,
|
||||
},
|
||||
HTTPAPIResponseHeaders: map[string]string{
|
||||
|
||||
Reference in New Issue
Block a user