2015-05-29 19:50:05 +00:00
|
|
|
package admin
|
2015-05-30 20:00:46 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
// DefaultBindAddress is the default bind address for the HTTP server.
|
|
|
|
DefaultBindAddress = ":8083"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Config struct {
|
2015-07-22 23:49:12 +00:00
|
|
|
Enabled bool `toml:"enabled"`
|
|
|
|
BindAddress string `toml:"bind-address"`
|
|
|
|
HttpsEnabled bool `toml:"https-enabled"`
|
|
|
|
HttpsCertificate string `toml:"https-certificate"`
|
2015-05-30 20:00:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewConfig() Config {
|
|
|
|
return Config{
|
2015-07-22 23:49:12 +00:00
|
|
|
BindAddress: DefaultBindAddress,
|
|
|
|
HttpsEnabled: false,
|
|
|
|
HttpsCertificate: "/etc/ssl/influxdb.pem",
|
2015-05-30 20:00:46 +00:00
|
|
|
}
|
|
|
|
}
|