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

fix(event): add check for active dashboard config #387

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading