Files
akvorado/console/config.go
Vincent Bernat f5252ce077 console: rework a bit user management
Notably, HTTP headers are configurable and a provider is used for the
frontend side.
2022-05-31 17:03:00 +02:00

19 lines
582 B
Go

package console
import "akvorado/console/authentication"
// Configuration describes the configuration for the console component.
type Configuration struct {
// ServeLiveFS serve files from the filesystem instead of the embedded versions.
ServeLiveFS bool
// Authentication describes authentication configuration
Authentication authentication.Configuration
}
// DefaultConfiguration represents the default configuration for the console component.
func DefaultConfiguration() Configuration {
return Configuration{
Authentication: authentication.DefaultConfiguration(),
}
}