Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 3f1809c

Browse files
authored
fix(event): add check for active dashboard config (#387)
before starting server Fix #384 Signed-off-by: Dwi Siswanto <[email protected]>
1 parent 273bdd6 commit 3f1809c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/event/event.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ func Run(options *common.Options, version string) *server {
3030
}
3131
a := httpauth.AuthOptions{Realm: "teler"}
3232

33+
if !s.options.Configs.Dashboard.Active {
34+
return s
35+
}
36+
3337
mux := goji.NewMux()
3438

3539
user := s.options.Configs.Dashboard.Username

0 commit comments

Comments
 (0)