aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Lebedev <lebedev_k@tochka.com>2020-12-14 13:24:41 +0500
committerKonstantin Lebedev <lebedev_k@tochka.com>2020-12-14 13:24:41 +0500
commitc4459249efedb117cb66fbdbd8df87ec3d995865 (patch)
treecc7943cc4cb0e802cc07c9c2a4ebe72169317a4e
parenteadbba5c955070985ea918cffb724a8a92793572 (diff)
downloadseaweedfs-c4459249efedb117cb66fbdbd8df87ec3d995865.tar.xz
seaweedfs-c4459249efedb117cb66fbdbd8df87ec3d995865.zip
ui interface is always on
-rw-r--r--weed/server/master_server.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/weed/server/master_server.go b/weed/server/master_server.go
index 6d27d8035..58a991876 100644
--- a/weed/server/master_server.go
+++ b/weed/server/master_server.go
@@ -82,9 +82,6 @@ func NewMasterServer(r *mux.Router, option *MasterOption, peers []string) *Maste
v.SetDefault("master.replication.treat_replication_as_minimums", false)
replicationAsMin := v.GetBool("master.replication.treat_replication_as_minimums")
- v.SetDefault("access.ui", true)
- enableUiAccess := v.GetBool("access.ui")
-
var preallocateSize int64
if option.VolumePreallocate {
preallocateSize = int64(option.VolumeSizeLimitMB) * (1 << 20)
@@ -111,11 +108,9 @@ func NewMasterServer(r *mux.Router, option *MasterOption, peers []string) *Maste
ms.guard = security.NewGuard(ms.option.WhiteList, signingKey, expiresAfterSec, readSigningKey, readExpiresAfterSec)
- if enableUiAccess {
- handleStaticResources2(r)
- r.HandleFunc("/", ms.proxyToLeader(ms.uiStatusHandler))
- r.HandleFunc("/ui/index.html", ms.uiStatusHandler)
- }
+ handleStaticResources2(r)
+ r.HandleFunc("/", ms.proxyToLeader(ms.uiStatusHandler))
+ r.HandleFunc("/ui/index.html", ms.uiStatusHandler)
if !ms.option.DisableHttp {
r.HandleFunc("/dir/assign", ms.proxyToLeader(ms.guard.WhiteList(ms.dirAssignHandler)))
r.HandleFunc("/dir/lookup", ms.guard.WhiteList(ms.dirLookupHandler))