mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Document consul configuration
This commit is contained in:
@@ -96,6 +96,7 @@ consul {
|
||||
ca_file = "/path/to/ca/file"
|
||||
cert_file = "/path/to/cert/file"
|
||||
key_file = "/path/to/key/file"
|
||||
server_auto_join = true
|
||||
client_auto_join = true
|
||||
server_auto_join = false
|
||||
client_auto_join = false
|
||||
auto_advertise = false
|
||||
}
|
||||
|
||||
@@ -394,6 +394,8 @@ func DefaultConfig() *Config {
|
||||
ServerServiceName: "nomad",
|
||||
ClientServiceName: "nomad-client",
|
||||
AutoAdvertise: true,
|
||||
ServerAutoJoin: true,
|
||||
ClientAutoJoin: true,
|
||||
Timeout: 5 * time.Second,
|
||||
},
|
||||
Client: &ClientConfig{
|
||||
|
||||
@@ -113,8 +113,9 @@ func TestConfig_Parse(t *testing.T) {
|
||||
CAFile: "/path/to/ca/file",
|
||||
CertFile: "/path/to/cert/file",
|
||||
KeyFile: "/path/to/key/file",
|
||||
ServerAutoJoin: true,
|
||||
ClientAutoJoin: true,
|
||||
ServerAutoJoin: false,
|
||||
ClientAutoJoin: false,
|
||||
AutoAdvertise: false,
|
||||
},
|
||||
HTTPAPIResponseHeaders: map[string]string{
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
|
||||
Reference in New Issue
Block a user