diff options
author | dicarne <dicarne@zhishudali.ink> | 2024-05-15 21:56:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 08:56:17 -0500 |
commit | d0d6aad85f4d1e2a6d2a6524fe13eccecfd350af (patch) | |
tree | b3087a88db27539860478aa1f6e3e1396490b0ea /cmd | |
parent | db578431ea5e8dc7347ba3dc10e82a01c5ba3ace (diff) | |
download | gitea-d0d6aad85f4d1e2a6d2a6524fe13eccecfd350af.tar.gz gitea-d0d6aad85f4d1e2a6d2a6524fe13eccecfd350af.zip |
Supports forced use of S3 virtual-hosted style (#30969)
Add a configuration item to enable S3 virtual-hosted style (V2) to solve
the problem caused by some S3 service providers not supporting path
style (V1).
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/migrate_storage.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/migrate_storage.go b/cmd/migrate_storage.go index 357416fc33..7d1ef052ff 100644 --- a/cmd/migrate_storage.go +++ b/cmd/migrate_storage.go @@ -91,6 +91,11 @@ var CmdMigrateStorage = &cli.Command{ Value: "", Usage: "Minio checksum algorithm (default/md5)", }, + &cli.StringFlag{ + Name: "minio-bucket-lookup-type", + Value: "", + Usage: "Minio bucket lookup type", + }, }, } @@ -220,6 +225,7 @@ func runMigrateStorage(ctx *cli.Context) error { UseSSL: ctx.Bool("minio-use-ssl"), InsecureSkipVerify: ctx.Bool("minio-insecure-skip-verify"), ChecksumAlgorithm: ctx.String("minio-checksum-algorithm"), + BucketLookUpType: ctx.String("minio-bucket-lookup-type"), }, }) default: |