diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-02-09 21:07:12 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-02-09 21:07:12 -0800 |
| commit | 501bd72b1c9a88cadb5182cf9c13c2d796cf775f (patch) | |
| tree | dbd04f1f45cd6b8d805bb1914986151ad6e7feaf /weed/command/scaffold.go | |
| parent | 729d71fd4cf07709331ba05dd075c54e2effabe9 (diff) | |
| download | seaweedfs-501bd72b1c9a88cadb5182cf9c13c2d796cf775f.tar.xz seaweedfs-501bd72b1c9a88cadb5182cf9c13c2d796cf775f.zip | |
wip: add security.toml file
Diffstat (limited to 'weed/command/scaffold.go')
| -rw-r--r-- | weed/command/scaffold.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go index ec0723859..40e7437d2 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_EXAMPLE case "replication": content = REPLICATION_TOML_EXAMPLE + case "security": + content = SECURITY_TOML_EXAMPLE } if content == "" { println("need a valid -config option") @@ -240,4 +242,12 @@ bucket = "mybucket" # an existing bucket directory = "/" # destination directory ` + + SECURITY_TOML_EXAMPLE = ` +# this file is read by master, volume server, and filer + +[jwt] +signing_key = "" + +` ) |
