mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
console: turn authentication into a proper component
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
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(),
|
||||
}
|
||||
return Configuration{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user