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

Commit

Permalink
fix(event): add check for active dashboard config (#387)
Browse files Browse the repository at this point in the history
before starting server

Fix #384

Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 authored Feb 13, 2024
1 parent 273bdd6 commit 3f1809c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f1809c

Please sign in to comment.