aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-08-25 02:27:47 -0700
committerChris Lu <chris.lu@gmail.com>2020-08-25 02:27:47 -0700
commit1901f15cd2dc706a7d614dd2fc2c654e31883399 (patch)
tree3e1960d048b2b5e6feb20c0a01a22f699803910f /weed/server/volume_server.go
parent81e5124faf48f879d4b7e7f9e551d7166b9b0072 (diff)
downloadseaweedfs-1901f15cd2dc706a7d614dd2fc2c654e31883399.tar.xz
seaweedfs-1901f15cd2dc706a7d614dd2fc2c654e31883399.zip
volume server: remove whitelist for status checking
Volume liveness/readiness not work if jwt enabled, I try use param -whiteList but jwt breaks
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index 3af37b491..fc6fa5cee 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -72,10 +72,10 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
vs.guard = security.NewGuard(whiteList, signingKey, expiresAfterSec, readSigningKey, readExpiresAfterSec)
handleStaticResources(adminMux)
+ adminMux.HandleFunc("/status", vs.statusHandler)
if signingKey == "" || enableUiAccess {
// only expose the volume server details for safe environments
adminMux.HandleFunc("/ui/index.html", vs.uiStatusHandler)
- adminMux.HandleFunc("/status", vs.guard.WhiteList(vs.statusHandler))
/*
adminMux.HandleFunc("/stats/counter", vs.guard.WhiteList(statsCounterHandler))
adminMux.HandleFunc("/stats/memory", vs.guard.WhiteList(statsMemoryHandler))