SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
wip: add security.toml file
Chris Lu501bd72b1c9a
diff --git a/weed/command/filer.go b/weed/command/filer.goindex 0c1950f967..f5fa6d50f8 100644--- a/weed/command/filer.go+++ b/weed/command/filer.go@@ -70,7 +70,7 @@ var cmdFiler = &Command{The configuration file "filer.toml" is read from ".", "$HOME/.seaweedfs/", or "/etc/seaweedfs/", in that order.- The example filer.toml configuration file can be generated by "weed scaffold filer"+ The example filer.toml configuration file can be generated by "weed scaffold -config=filer"`,}diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.goindex 3384e40232..c24f63bf09 100644--- a/weed/command/filer_replication.go+++ b/weed/command/filer_replication.go@@ -28,7 +28,7 @@ var cmdFilerReplicate = &Command{filer.replicate listens on filer notifications. If any file is updated, it will fetch the updated content,and write to the other destination.- Run "weed scaffold -config replication" to generate a replication.toml file and customize the parameters.+ Run "weed scaffold -config=replication" to generate a replication.toml file and customize the parameters.`,}diff --git a/weed/command/master.go b/weed/command/master.goindex bd2267b9e8..53c72852ce 100644--- a/weed/command/master.go+++ b/weed/command/master.go@@ -23,8 +23,11 @@ func init() {var cmdMaster = &Command{UsageLine: "master -port=9333",Short: "start a master server",- Long: `start a master server to provide volume=>location mapping service- and sequence number of file ids+ Long: `start a master server to provide volume=>location mapping service and sequence number of file ids++ The configuration file "security.toml" is read from ".", "$HOME/.seaweedfs/", or "/etc/seaweedfs/", in that order.++ The example security.toml configuration file can be generated by "weed scaffold -config=security"`,}diff --git a/weed/command/scaffold.go b/weed/command/scaffold.goindex ec07238592..40e7437d21 100644--- a/weed/command/scaffold.go+++ b/weed/command/scaffold.go@@ -19,7 +19,7 @@ var cmdScaffold = &Command{var (outputPath = cmdScaffold.Flag.String("output", "", "if not empty, save the configuration file to this directory")- config = cmdScaffold.Flag.String("config", "filer", "[filer|notification|replication] the configuration file to generate")+ config = cmdScaffold.Flag.String("config", "filer", "[filer|notification|replication|security] the configuration file to generate"))func runScaffold(cmd *Command, args []string) bool {@@ -32,6 +32,8 @@ func runScaffold(cmd *Command, args []string) bool {content = NOTIFICATION_TOML_EXAMPLEcase "replication":content = REPLICATION_TOML_EXAMPLE+ case "security":+ content = SECURITY_TOML_EXAMPLE}if content == "" {println("need a valid -config option")@@ -239,5 +241,13 @@ b2_master_application_key = ""bucket = "mybucket" # an existing bucketdirectory = "/" # destination directory+`++ SECURITY_TOML_EXAMPLE = `+# this file is read by master, volume server, and filer++[jwt]+signing_key = ""+`)