aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-01-02 12:55:34 -0800
committerchrislu <chris.lu@gmail.com>2024-01-02 12:55:34 -0800
commitd3688938d9e3cd050f2fb2f9943988dd2529c87e (patch)
tree1f059cacd6f5ef505b6a967320157d9a5e98d02c /weed/command/filer.go
parent53188a119163d7e6987cef5014aac36c1396be9b (diff)
downloadseaweedfs-d3688938d9e3cd050f2fb2f9943988dd2529c87e.tar.xz
seaweedfs-d3688938d9e3cd050f2fb2f9943988dd2529c87e.zip
avoid nil
fix https://github.com/seaweedfs/seaweedfs/issues/5153 introduced from #5109
Diffstat (limited to 'weed/command/filer.go')
-rw-r--r--weed/command/filer.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go
index 50fc4492b..cee886d18 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -100,6 +100,7 @@ func init() {
filerS3Options.portHttps = cmdFiler.Flag.Int("s3.port.https", 0, "s3 server https listen port")
filerS3Options.portGrpc = cmdFiler.Flag.Int("s3.port.grpc", 0, "s3 server grpc listen port")
filerS3Options.domainName = cmdFiler.Flag.String("s3.domainName", "", "suffix of the host name in comma separated list, {bucket}.{domainName}")
+ filerS3Options.allowedOrigins = cmdFiler.Flag.String("s3.allowedOrigins", "*", "comma separated list of allowed origins")
filerS3Options.dataCenter = cmdFiler.Flag.String("s3.dataCenter", "", "prefer to read and write to volumes in this data center")
filerS3Options.tlsPrivateKey = cmdFiler.Flag.String("s3.key.file", "", "path to the TLS private key file")
filerS3Options.tlsCertificate = cmdFiler.Flag.String("s3.cert.file", "", "path to the TLS certificate file")