diff options
| author | Karol Będkowski <KarolBedkowski@users.noreply.github.com> | 2025-03-24 17:14:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-24 10:14:31 -0700 |
| commit | 95746f48e6f158ffe3f49a88757ffe67febe893e (patch) | |
| tree | 668c6d8a1afbc86336092e21892d5ca67fd7823c /weed/command/filer.go | |
| parent | cbf4ae76a26664df5a148af5a7cd156a6f511e7e (diff) | |
| download | seaweedfs-95746f48e6f158ffe3f49a88757ffe67febe893e.tar.xz seaweedfs-95746f48e6f158ffe3f49a88757ffe67febe893e.zip | |
feat/fix: add s3.cacert.file/tlsVerifyClientCert to filer command (#6659)
This prevent crash filler with nil pointer dereference as s3 expect this
parameters.
New two parameters are added to filer command - copy of s3 parameters:
- s3.cacert.file - path to the TLS CA certificate file
- s3.tlsVerifyClientCert - whether to verify the client's certificate
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index d763c7f3c..55ea1169d 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -119,6 +119,8 @@ func init() { filerS3Options.allowEmptyFolder = cmdFiler.Flag.Bool("s3.allowEmptyFolder", true, "allow empty folders") filerS3Options.allowDeleteBucketNotEmpty = cmdFiler.Flag.Bool("s3.allowDeleteBucketNotEmpty", true, "allow recursive deleting all entries along with bucket") 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") // start webdav on filer filerStartWebDav = cmdFiler.Flag.Bool("webdav", false, "whether to start webdav gateway") |
