Browse Source

Clean up documentation and remove unnecessary flag

tags/v1.2.0
stefanbenten 4 years ago
parent
commit
867471aa9c
3 changed files with 5 additions and 6 deletions
  1. +2
    -3
      README.md
  2. +2
    -2
      cmd/cmd.go
  3. +1
    -1
      server/storage.go

+ 2
- 3
README.md View File

@@ -100,8 +100,8 @@ s3-endpoint | Custom S3 endpoint. | |
s3-region | region of the s3 bucket | eu-west-1 | S3_REGION
s3-no-multipart | disables s3 multipart upload | false | |
s3-path-style | Forces path style URLs, required for Minio. | false | |
storj-scope | Scope to use to access the project | | STORJ_SCOPE
storj-apikey | Bucket to use within the project | | STORJ_BUCKET
storj-access | Scope to use to access the project | | STORJ_ACCESS
storj-bucket | Bucket to use within the project | | STORJ_BUCKET
storj-skip-peer-ca | Skip's CA Peer Check for local environments | false | STORJ_SKIP_PEER_CA
basedir | path storage for local/gdrive provider| |
gdrive-client-json-filepath | path to oauth client json config for gdrive provider| |
@@ -162,7 +162,6 @@ To use the Storj Network as storage provider you need to specify the following f
- provider `--provider storj`
- storj-scope _(either via flag or environment variable STORJ_SCOPE)_
- storj-bucket _(either via flag or environment variable STORJ_BUCKET)_
- storj-skip-peer-ca _(if running against a local test network)_

### Creating Bucket and Scope



+ 2
- 2
cmd/cmd.go View File

@@ -380,11 +380,11 @@ func New() *Cmd {
options = append(options, server.UseStorage(storage))
}
case "storj":
if scope := c.String("storj-scope"); scope == "" {
if access := c.String("storj-access"); access == "" {
panic("storj-scope not set.")
} else if bucket := c.String("storj-bucket"); bucket == "" {
panic("storj-bucket not set.")
} else if storage, err := server.NewStorjStorage(scope, bucket, c.Bool("storj-skip-peer-ca"), logger); err != nil {
} else if storage, err := server.NewStorjStorage(access, bucket, logger); err != nil {
panic(err)
} else {
options = append(options, server.UseStorage(storage))


+ 1
- 1
server/storage.go View File

@@ -572,7 +572,7 @@ type StorjStorage struct {
logger *log.Logger
}

func NewStorjStorage(access, bucket string, skipCA bool, logger *log.Logger) (*StorjStorage, error) {
func NewStorjStorage(access, bucket string, logger *log.Logger) (*StorjStorage, error) {
var instance StorjStorage
var err error



Loading…
Cancel
Save