From a050f3228afe38fdcbbc5839f57e0411ca476f65 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Mon, 22 Mar 2021 12:03:51 +0100 Subject: [PATCH] feat: add DEX_FRONTEND_DIR env var for setting the frontend dir Signed-off-by: Mark Sagi-Kazar --- cmd/dex/serve.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/dex/serve.go b/cmd/dex/serve.go index bd7869c4..1960d101 100644 --- a/cmd/dex/serve.go +++ b/cmd/dex/serve.go @@ -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") + } }