Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Read FleetDB endpoint by viper
Browse files Browse the repository at this point in the history
  • Loading branch information
Alva8756 authored May 8, 2024
1 parent c7c62bc commit 2dcfb32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ func envVarOverrides(v *viper.Viper, cfg *Configuration) error {
return errors.New("no listen address set")
}

if v.GetString("fleetdb.endpoint") != "" {
cfg.FleetDBAPIOptions.Endpoint = v.GetString("fleetdb.endpoint")
}

if v.GetString("fleetdb.disable.oauth") != "" {
cfg.FleetDBAPIOptions.DisableOAuth = v.GetBool("fleetdb.disable.oauth")
}
Expand Down

0 comments on commit 2dcfb32

Please sign in to comment.