mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
Add --s3-force-path-style to portable
This commit is contained in:
committed by
Nicola Murino
parent
dc19921b0c
commit
f828c58dca
@@ -48,6 +48,7 @@ var (
|
|||||||
portableS3KeyPrefix string
|
portableS3KeyPrefix string
|
||||||
portableS3ULPartSize int
|
portableS3ULPartSize int
|
||||||
portableS3ULConcurrency int
|
portableS3ULConcurrency int
|
||||||
|
portableS3ForcePathStyle bool
|
||||||
portableGCSBucket string
|
portableGCSBucket string
|
||||||
portableGCSCredentialsFile string
|
portableGCSCredentialsFile string
|
||||||
portableGCSAutoCredentials int
|
portableGCSAutoCredentials int
|
||||||
@@ -174,6 +175,7 @@ Please take a look at the usage below to customize the serving parameters`,
|
|||||||
KeyPrefix: portableS3KeyPrefix,
|
KeyPrefix: portableS3KeyPrefix,
|
||||||
UploadPartSize: int64(portableS3ULPartSize),
|
UploadPartSize: int64(portableS3ULPartSize),
|
||||||
UploadConcurrency: portableS3ULConcurrency,
|
UploadConcurrency: portableS3ULConcurrency,
|
||||||
|
ForcePathStyle: portableS3ForcePathStyle,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
GCSConfig: vfs.GCSFsConfig{
|
GCSConfig: vfs.GCSFsConfig{
|
||||||
@@ -298,6 +300,7 @@ prefix and its contents`)
|
|||||||
(MB)`)
|
(MB)`)
|
||||||
portableCmd.Flags().IntVar(&portableS3ULConcurrency, "s3-upload-concurrency", 2, `How many parts are uploaded in
|
portableCmd.Flags().IntVar(&portableS3ULConcurrency, "s3-upload-concurrency", 2, `How many parts are uploaded in
|
||||||
parallel`)
|
parallel`)
|
||||||
|
portableCmd.Flags().BoolVar(&portableS3ForcePathStyle, "s3-force-path-style", false, `Force path style bucket URL`)
|
||||||
portableCmd.Flags().StringVar(&portableGCSBucket, "gcs-bucket", "", "")
|
portableCmd.Flags().StringVar(&portableGCSBucket, "gcs-bucket", "", "")
|
||||||
portableCmd.Flags().StringVar(&portableGCSStorageClass, "gcs-storage-class", "", "")
|
portableCmd.Flags().StringVar(&portableGCSStorageClass, "gcs-storage-class", "", "")
|
||||||
portableCmd.Flags().StringVar(&portableGCSKeyPrefix, "gcs-key-prefix", "", `Allows to restrict access to the
|
portableCmd.Flags().StringVar(&portableGCSKeyPrefix, "gcs-key-prefix", "", `Allows to restrict access to the
|
||||||
|
|||||||
Reference in New Issue
Block a user