Merge pull request #6467 from JimMoen/update-dashboard
fix(dashboard): enable dashboard by default
This commit is contained in:
commit
2891518f8d
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ export EMQX_DEFAULT_BUILDER = ghcr.io/emqx/emqx-builder/4.4-2:23.3.4.9-3-alpine3
|
|||
export EMQX_DEFAULT_RUNNER = alpine:3.14
|
||||
export OTP_VSN ?= $(shell $(CURDIR)/scripts/get-otp-vsn.sh)
|
||||
export PKG_VSN ?= $(shell $(CURDIR)/pkg-vsn.sh)
|
||||
export EMQX_DASHBOARD_VERSION ?= v0.5.0
|
||||
export EMQX_DASHBOARD_VERSION ?= v0.7.0
|
||||
export DOCKERFILE := deploy/docker/Dockerfile
|
||||
export DOCKERFILE_TESTING := deploy/docker/Dockerfile.testing
|
||||
ifeq ($(OS),Windows_NT)
|
||||
|
|
|
@ -48,16 +48,10 @@ start_listeners() ->
|
|||
'basicAuth' => #{type => http, scheme => basic},
|
||||
'bearerAuth' => #{type => http, scheme => bearer}
|
||||
}}},
|
||||
Dispatch =
|
||||
case os:getenv("_EMQX_ENABLE_DASHBOARD") of
|
||||
V when V =:= "true" orelse V =:= "1" ->
|
||||
[{"/", cowboy_static, {priv_file, emqx_dashboard, "www/index.html"}},
|
||||
{"/static/[...]", cowboy_static, {priv_dir, emqx_dashboard, "www/static"}},
|
||||
{'_', cowboy_static, {priv_file, emqx_dashboard, "www/index.html"}}
|
||||
];
|
||||
_ ->
|
||||
[]
|
||||
end,
|
||||
Dispatch = [ {"/", cowboy_static, {priv_file, emqx_dashboard, "www/index.html"}}
|
||||
, {"/static/[...]", cowboy_static, {priv_dir, emqx_dashboard, "www/static"}}
|
||||
, {'_', cowboy_static, {priv_file, emqx_dashboard, "www/index.html"}}
|
||||
],
|
||||
BaseMinirest = #{
|
||||
base_path => ?BASE_PATH,
|
||||
modules => minirest_api:find_api_modules(apps()),
|
||||
|
|
Loading…
Reference in New Issue