Skip to content

Commit

Permalink
feat: add DEX_FRONTEND_DIR env var for setting the frontend dir
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
  • Loading branch information
sagikazarmark committed Mar 22, 2021
1 parent 3b80d48 commit a050f32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/dex/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,4 +523,8 @@ func applyConfigOverrides(options serveOptions, config *Config) {
if options.grpcAddr != "" {
config.GRPC.Addr = options.grpcAddr
}

if config.Frontend.Dir == "" {
config.Frontend.Dir = os.Getenv("DEX_FRONTEND_DIR")
}
}

0 comments on commit a050f32

Please sign in to comment.