diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2024-01-06 00:10:20 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 11:10:20 -0800 |
| commit | 3b62b338a5532639fa34cd2a56101ea5507f6eb3 (patch) | |
| tree | 29c56efc55008fb32221e1686fe646af562fefde /weed/command/webdav.go | |
| parent | 4f6172f3699cc47107dea3fe4f3664f283296cdb (diff) | |
| download | seaweedfs-3b62b338a5532639fa34cd2a56101ea5507f6eb3.tar.xz seaweedfs-3b62b338a5532639fa34cd2a56101ea5507f6eb3.zip | |
chore: add maxMB option for webdav (#5165)
Diffstat (limited to 'weed/command/webdav.go')
| -rw-r--r-- | weed/command/webdav.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/webdav.go b/weed/command/webdav.go index 67e6ce69c..f0e738f4a 100644 --- a/weed/command/webdav.go +++ b/weed/command/webdav.go @@ -32,6 +32,7 @@ type WebDavOption struct { tlsCertificate *string cacheDir *string cacheSizeMB *int64 + maxMB *int } func init() { @@ -45,6 +46,7 @@ func init() { webDavStandaloneOptions.tlsCertificate = cmdWebDav.Flag.String("cert.file", "", "path to the TLS certificate file") webDavStandaloneOptions.cacheDir = cmdWebDav.Flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks") webDavStandaloneOptions.cacheSizeMB = cmdWebDav.Flag.Int64("cacheCapacityMB", 0, "local cache capacity in MB") + webDavStandaloneOptions.maxMB = cmdWebDav.Flag.Int("maxMB", 4, "split files larger than the limit") webDavStandaloneOptions.filerRootPath = cmdWebDav.Flag.String("filer.path", "/", "use this remote path from filer server") } @@ -116,6 +118,7 @@ func (wo *WebDavOption) startWebDav() bool { Cipher: cipher, CacheDir: util.ResolvePath(*wo.cacheDir), CacheSizeMB: *wo.cacheSizeMB, + MaxMB: *wo.maxMB, }) if webdavServer_err != nil { glog.Fatalf("WebDav Server startup error: %v", webdavServer_err) |
