Merge pull request #1581 from influxdb/admin-interface-defaults
Make admin interface enabled by default.pull/1583/head
commit
99a1b47f90
cmd/influxd
|
@ -119,6 +119,8 @@ func NewConfig() *Config {
|
||||||
c.Data.Port = DefaultDataPort
|
c.Data.Port = DefaultDataPort
|
||||||
c.Data.RetentionCheckEnabled = true
|
c.Data.RetentionCheckEnabled = true
|
||||||
c.Data.RetentionCheckPeriod = Duration(10 * time.Minute)
|
c.Data.RetentionCheckPeriod = Duration(10 * time.Minute)
|
||||||
|
c.Admin.Enabled = true
|
||||||
|
c.Admin.Port = 8083
|
||||||
|
|
||||||
// Detect hostname (or set to localhost).
|
// Detect hostname (or set to localhost).
|
||||||
if c.Hostname, _ = os.Hostname(); c.Hostname == "" {
|
if c.Hostname, _ = os.Hostname(); c.Hostname == "" {
|
||||||
|
|
|
@ -70,6 +70,7 @@ func createCombinedNodeCluster(t *testing.T, testName string, nNodes, basePort i
|
||||||
c.Data.Dir = filepath.Join(tmpDataDir, strconv.Itoa(basePort))
|
c.Data.Dir = filepath.Join(tmpDataDir, strconv.Itoa(basePort))
|
||||||
c.Broker.Port = basePort
|
c.Broker.Port = basePort
|
||||||
c.Data.Port = basePort
|
c.Data.Port = basePort
|
||||||
|
c.Admin.Enabled = false
|
||||||
|
|
||||||
b, s := main.Run(c, "", "x.x", os.Stderr)
|
b, s := main.Run(c, "", "x.x", os.Stderr)
|
||||||
if b == nil {
|
if b == nil {
|
||||||
|
|
Loading…
Reference in New Issue