aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2019-03-21 16:00:46 -0700
committerChris Lu <chris.lu@uber.com>2019-03-21 16:00:46 -0700
commita3490b600cad88ced4ea9bf3672b8566f207f57f (patch)
tree158a0fa50350132687ae842e2ba10cd4e9b72397 /weed/command/filer.go
parent531add52c27f2754c36626f1efeab15029a47e29 (diff)
downloadseaweedfs-a3490b600cad88ced4ea9bf3672b8566f207f57f.tar.xz
seaweedfs-a3490b600cad88ced4ea9bf3672b8566f207f57f.zip
weed filer, weed master: add option to disable http
Diffstat (limited to 'weed/command/filer.go')
-rw-r--r--weed/command/filer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go
index d12d661a8..5b3f733bd 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -33,6 +33,7 @@ type FilerOptions struct {
dirListingLimit *int
dataCenter *string
enableNotification *bool
+ disableHttp *bool
// default leveldb directory, used in "weed server" mode
defaultLevelDbDirectory *string
@@ -52,6 +53,7 @@ func init() {
f.maxMB = cmdFiler.Flag.Int("maxMB", 32, "split files larger than the limit")
f.dirListingLimit = cmdFiler.Flag.Int("dirListLimit", 100000, "limit sub dir listing size")
f.dataCenter = cmdFiler.Flag.String("dataCenter", "", "prefer to write to volumes in this data center")
+ f.disableHttp = cmdFiler.Flag.Bool("disableHttp", false, "disable http request, only gRpc operations are allowed")
}
var cmdFiler = &Command{
@@ -108,6 +110,7 @@ func (fo *FilerOptions) startFiler() {
DirListingLimit: *fo.dirListingLimit,
DataCenter: *fo.dataCenter,
DefaultLevelDbDir: defaultLevelDbDirectory,
+ DisableHttp: *fo.disableHttp,
})
if nfs_err != nil {
glog.Fatalf("Filer startup error: %v", nfs_err)