Files
akvorado/common/http/config.go
2022-07-07 02:42:46 +02:00

20 lines
525 B
Go

// SPDX-FileCopyrightText: 2022 Free Mobile
// SPDX-License-Identifier: AGPL-3.0-only
package http
// Configuration describes the configuration for the HTTP server.
type Configuration struct {
// Listen defines the listening string to listen to.
Listen string `validate:"required,listen"`
// Profiler enables Go profiler as /debug
Profiler bool
}
// DefaultConfiguration is the default configuration of the HTTP server.
func DefaultConfiguration() Configuration {
return Configuration{
Listen: "0.0.0.0:8080",
}
}