aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-12-02 23:38:10 +0500
committerGitHub <noreply@github.com>2024-12-02 10:38:10 -0800
commitb65eb2ec4569891495ae184bf6090e0e500961e3 (patch)
tree92b75ea55a544a066f657e12fc9745a78f26baa5 /weed/command
parentb2ba7d7408500bb450884a288327a1fb53e67fae (diff)
downloadseaweedfs-b65eb2ec4569891495ae184bf6090e0e500961e3.tar.xz
seaweedfs-b65eb2ec4569891495ae184bf6090e0e500961e3.zip
[security] reload whiteList on http seerver (#6302)
* reload whiteList * white_list add to scaffold
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/scaffold/security.toml4
-rw-r--r--weed/command/volume.go1
2 files changed, 5 insertions, 0 deletions
diff --git a/weed/command/scaffold/security.toml b/weed/command/scaffold/security.toml
index 113e5b016..8c1b51ac3 100644
--- a/weed/command/scaffold/security.toml
+++ b/weed/command/scaffold/security.toml
@@ -121,3 +121,7 @@ cert = ""
key = ""
ca = ""
# disable_tls_verify_client_cert = true|false (default: false)
+
+# white list. It's checking request ip address.
+[guard]
+white_list = ""
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 1078d8d6c..2389d5561 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -280,6 +280,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
clusterHttpServer := v.startClusterHttpService(volumeMux)
grace.OnReload(volumeServer.LoadNewVolumes)
+ grace.OnReload(volumeServer.Reload)
stopChan := make(chan bool)
grace.OnInterrupt(func() {