fix OIDC not working when ISSUE_URL points to GoDoxy itself

This commit is contained in:
yusing
2025-01-30 10:39:26 +08:00
parent bf7f6e99c5
commit 98443be80c
3 changed files with 45 additions and 4 deletions

View File

@@ -127,11 +127,18 @@ func main() {
return
}
cfg.Start(&config.StartServersOptions{
Proxy: true,
Metrics: true,
})
if err := auth.Initialize(); err != nil {
logging.Fatal().Err(err).Msg("failed to initialize authentication")
}
// API Handler needs to start after auth is initialized.
cfg.StartServers(&config.StartServersOptions{
API: true,
})
cfg.Start()
config.WatchChanges()
sig := make(chan os.Signal, 1)