ARibster
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
1 deletions
-
weed/command/filer.go
|
|
@ -121,6 +121,7 @@ func init() { |
|
|
|
filerS3Options.localSocket = cmdFiler.Flag.String("s3.localSocket", "", "default to /tmp/seaweedfs-s3-<port>.sock") |
|
|
|
filerS3Options.tlsCACertificate = cmdFiler.Flag.String("s3.cacert.file", "", "path to the TLS CA certificate file") |
|
|
|
filerS3Options.tlsVerifyClientCert = cmdFiler.Flag.Bool("s3.tlsVerifyClientCert", false, "whether to verify the client's certificate") |
|
|
|
filerS3Options.bindIp = cmdFiler.Flag.String("s3.ip.bind", "", "ip address to bind to. If empty, default to same as -ip.bind option.") |
|
|
|
filerS3Options.idleTimeout = cmdFiler.Flag.Int("s3.idleTimeout", 10, "connection idle seconds") |
|
|
|
|
|
|
|
// start webdav on filer
|
|
|
@ -198,7 +199,9 @@ func runFiler(cmd *Command, args []string) bool { |
|
|
|
startDelay := time.Duration(2) |
|
|
|
if *filerStartS3 { |
|
|
|
filerS3Options.filer = &filerAddress |
|
|
|
if *filerS3Options.bindIp == "" { |
|
|
|
filerS3Options.bindIp = f.bindIp |
|
|
|
} |
|
|
|
filerS3Options.localFilerSocket = f.localSocket |
|
|
|
if *f.dataCenter != "" && *filerS3Options.dataCenter == "" { |
|
|
|
filerS3Options.dataCenter = f.dataCenter |
|
|
|