diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-18 12:15:09 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-18 12:15:09 -0800 |
| commit | c2ad6f104757b2d58c9a354400d4ec8bca268c3e (patch) | |
| tree | 9fac013c2e8c22174320778d4581d051a03d59d0 /weed/command/webdav.go | |
| parent | 816ef0ed302c263939ce900a01624f80dbdf17b9 (diff) | |
| download | seaweedfs-c2ad6f104757b2d58c9a354400d4ec8bca268c3e.tar.xz seaweedfs-c2ad6f104757b2d58c9a354400d4ec8bca268c3e.zip | |
webdav add replication setting
fix https://github.com/chrislusf/seaweedfs/issues/1817
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 dc84b1fd0..158ba292f 100644 --- a/weed/command/webdav.go +++ b/weed/command/webdav.go @@ -25,6 +25,7 @@ type WebDavOption struct { filer *string port *int collection *string + replication *string tlsPrivateKey *string tlsCertificate *string cacheDir *string @@ -36,6 +37,7 @@ func init() { webDavStandaloneOptions.filer = cmdWebDav.Flag.String("filer", "localhost:8888", "filer server address") webDavStandaloneOptions.port = cmdWebDav.Flag.Int("port", 7333, "webdav server http listen port") webDavStandaloneOptions.collection = cmdWebDav.Flag.String("collection", "", "collection to create the files") + webDavStandaloneOptions.replication = cmdWebDav.Flag.String("replication", "", "replication to create the files") webDavStandaloneOptions.tlsPrivateKey = cmdWebDav.Flag.String("key.file", "", "path to the TLS private key file") 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") @@ -107,6 +109,7 @@ func (wo *WebDavOption) startWebDav() bool { FilerGrpcAddress: filerGrpcAddress, GrpcDialOption: grpcDialOption, Collection: *wo.collection, + Replication: *wo.replication, Uid: uid, Gid: gid, Cipher: cipher, |
