mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
Updated the spec definition for tls config
This commit is contained in:
@@ -122,8 +122,8 @@ vault {
|
||||
tls_skip_verify = true
|
||||
}
|
||||
tls {
|
||||
http_tls = true
|
||||
rpc_tls = true
|
||||
enable_http = true
|
||||
enable_rpc = true
|
||||
verify_server_hostname = true
|
||||
ca_file = "foo"
|
||||
cert_file = "bar"
|
||||
|
||||
@@ -143,10 +143,10 @@ type AtlasConfig struct {
|
||||
type TLSConfig struct {
|
||||
|
||||
// EnableHTTP enabled TLS for http traffic to the Nomad server and clients
|
||||
EnableHTTP bool `mapstructure:"http_tls"`
|
||||
EnableHTTP bool `mapstructure:"enable_http"`
|
||||
|
||||
// EnableRPC enables TLS for RPC and Raft traffic to the Nomad servers
|
||||
EnableRPC bool `mapstructure:"rpc_tls"`
|
||||
EnableRPC bool `mapstructure:"enable_rpc"`
|
||||
|
||||
// VerifyServerHostname is used to enable hostname verification of servers. This
|
||||
// ensures that the certificate presented is valid for server.<datacenter>.<domain>.
|
||||
|
||||
@@ -662,8 +662,8 @@ func parseTLSConfig(result **TLSConfig, list *ast.ObjectList) error {
|
||||
listVal := list.Items[0].Val
|
||||
|
||||
valid := []string{
|
||||
"http_tls",
|
||||
"rpc_tls",
|
||||
"enable_http",
|
||||
"enable_rpc",
|
||||
"verify_server_hostname",
|
||||
"ca_file",
|
||||
"cert_file",
|
||||
|
||||
Reference in New Issue
Block a user