aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-11-28 18:33:18 -0800
committerChris Lu <chris.lu@gmail.com>2019-11-28 18:33:18 -0800
commitf60154f330a81354c433da37d612f235d1c0e4e9 (patch)
tree5e473f9616e35e525468959496e0448fb505e20a /weed/command/scaffold.go
parent641b92f53c057a2d0dd957ef2da26aadf0b70419 (diff)
downloadseaweedfs-f60154f330a81354c433da37d612f235d1c0e4e9.tar.xz
seaweedfs-f60154f330a81354c433da37d612f235d1c0e4e9.zip
master load backend storage config from master.toml
Diffstat (limited to 'weed/command/scaffold.go')
-rw-r--r--weed/command/scaffold.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index d0bdb3c60..f615033c7 100644
--- a/weed/command/scaffold.go
+++ b/weed/command/scaffold.go
@@ -357,13 +357,14 @@ type = "memory" # Choose [memory|etcd] type for storing the file id sequence
sequencer_etcd_urls = "http://127.0.0.1:2379"
-[storage.backend.s3]
-enabled = true
-aws_access_key_id = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
-aws_secret_access_key = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
-region = "us-east-2"
-bucket = "your_bucket_name" # an existing bucket
-directory = "/" # destination directory
+[storage.backend]
+ [storage.backend.s3.default]
+ enabled = true
+ aws_access_key_id = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
+ aws_secret_access_key = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
+ region = "us-east-2"
+ bucket = "your_bucket_name" # an existing bucket
+ directory = "/" # destination directory
`
)