move config...?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-05-10 17:14:11 +02:00
parent e28968c896
commit 95db1ecf62
70 changed files with 77 additions and 77 deletions

View File

@ -15,12 +15,12 @@ import (
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v2"
"goauthentik.io/authentik/lib"
"goauthentik.io/authentik/common/config"
)
var cfg *Config
const defaultConfigPath = "./authentik/lib/default.yml"
const defaultConfigPath = "./authentik/common/config/default.yml"
func getConfigPaths() []string {
configPaths := []string{defaultConfigPath, "/etc/authentik/config.yml", ""}
@ -70,7 +70,7 @@ func Get() *Config {
func (c *Config) Setup(paths ...string) {
// initially try to load the default config which is compiled in
err := c.LoadConfig(lib.DefaultConfig())
err := c.LoadConfig(config.DefaultConfig())
// this should never fail
if err != nil {
panic(fmt.Errorf("failed to load inbuilt config: %v", err))