aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-01-06 00:10:20 +0500
committerGitHub <noreply@github.com>2024-01-05 11:10:20 -0800
commit3b62b338a5532639fa34cd2a56101ea5507f6eb3 (patch)
tree29c56efc55008fb32221e1686fe646af562fefde /weed/command/server.go
parent4f6172f3699cc47107dea3fe4f3664f283296cdb (diff)
downloadseaweedfs-3b62b338a5532639fa34cd2a56101ea5507f6eb3.tar.xz
seaweedfs-3b62b338a5532639fa34cd2a56101ea5507f6eb3.zip
chore: add maxMB option for webdav (#5165)
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index 9631f6bfd..b8ef25fad 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -164,6 +164,7 @@ func init() {
webdavOptions.tlsCertificate = cmdServer.Flag.String("webdav.cert.file", "", "path to the TLS certificate file")
webdavOptions.cacheDir = cmdServer.Flag.String("webdav.cacheDir", os.TempDir(), "local cache directory for file chunks")
webdavOptions.cacheSizeMB = cmdServer.Flag.Int64("webdav.cacheCapacityMB", 0, "local cache capacity in MB")
+ webdavOptions.maxMB = cmdServer.Flag.Int("webdav.maxMB", 4, "split files larger than the limit")
webdavOptions.filerRootPath = cmdServer.Flag.String("webdav.filer.path", "/", "use this remote path from filer server")
mqBrokerOptions.port = cmdServer.Flag.Int("mq.broker.port", 17777, "message queue broker gRPC listen port")