Skip to content

Commit

Permalink
display message in stub when UI is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Nov 24, 2021
1 parent 57f045d commit 8006bd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions command/agent/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ var (
// Set to false by stub_asset if the ui build tag isn't enabled
uiEnabled = true

// Overridden if the ui build tag isn't enabled
stubHTML = ""
// Displayed when ui is disabled, but overridden if the ui build
// tag isn't enabled
stubHTML = "<html><p>Nomad UI is disabled</p></html>"

// allowCORS sets permissive CORS headers for a handler
allowCORS = cors.New(cors.Options{
Expand Down

0 comments on commit 8006bd6

Please sign in to comment.