Skip to content

Commit 8006bd6

Browse files
committed
display message in stub when UI is disabled
1 parent 57f045d commit 8006bd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

command/agent/http.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ var (
4747
// Set to false by stub_asset if the ui build tag isn't enabled
4848
uiEnabled = true
4949

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

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

0 commit comments

Comments
 (0)