From 3f1809c8670a1957f3f47a84c024a6e110da88af Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Tue, 13 Feb 2024 11:40:16 +0700 Subject: [PATCH] fix(event): add check for active dashboard config (#387) before starting server Fix #384 Signed-off-by: Dwi Siswanto --- internal/event/event.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/event/event.go b/internal/event/event.go index e1ae5fff..eb1ba4ca 100644 --- a/internal/event/event.go +++ b/internal/event/event.go @@ -30,6 +30,10 @@ func Run(options *common.Options, version string) *server { } a := httpauth.AuthOptions{Realm: "teler"} + if !s.options.Configs.Dashboard.Active { + return s + } + mux := goji.NewMux() user := s.options.Configs.Dashboard.Username