influxdb/services/admin/config.go

22 lines
500 B
Go
Raw Normal View History

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 {
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{
BindAddress: DefaultBindAddress,
HttpsEnabled: false,
HttpsCertificate: "/etc/ssl/influxdb.pem",
2015-05-30 20:00:46 +00:00
}
}