internal: fix race condition with config loading on startup, add index on debug server

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2023-01-08 20:33:04 +01:00
parent 7eb6320d74
commit a9680d6088
8 changed files with 38 additions and 24 deletions

View File

@ -33,7 +33,7 @@ func main() {
},
DisableHTMLEscape: true,
})
go debug.EnableDebugServer()
debug.EnableDebugServer()
akURL := config.Get().AuthentikHost
if akURL == "" {
fmt.Println("env AUTHENTIK_HOST not set!")