"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Add domain option for openstack (v3 auth)
Fabian Ruff640d7bd365a6
diff --git a/docs/content/swift.md b/docs/content/swift.mdindex e3b12090b..5b588385d 100644--- a/docs/content/swift.md+++ b/docs/content/swift.md@@ -72,6 +72,8 @@ Choose a number from below, or type in your own value6 / OVH\ "https://auth.cloud.ovh.net/v2.0"auth> 1+User domain - optional (v3 auth)+domain> DefaultTenant name - optionaltenant>Region name - optionaldiff --git a/swift/swift.go b/swift/swift.goindex bc07e1250..97d66db2b 100644--- a/swift/swift.go+++ b/swift/swift.go@@ -61,6 +61,9 @@ func init() {Help: "OVH",Value: "https://auth.cloud.ovh.net/v2.0",}},+ }, {+ Name: "domain",+ Help: "User domain - optional (v3 auth)",}, {Name: "tenant",Help: "Tenant name - optional",@@ -155,6 +158,7 @@ func swiftConnection(name string) (*swift.Connection, error) {UserAgent: fs.UserAgent,Tenant: fs.ConfigFile.MustValue(name, "tenant"),Region: fs.ConfigFile.MustValue(name, "region"),+ Domain: fs.ConfigFile.MustValue(name, "domain"),ConnectTimeout: 10 * fs.Config.ConnectTimeout, // Use the timeouts in the transportTimeout: 10 * fs.Config.Timeout, // Use the timeouts in the transportTransport: fs.Config.Transport(),