"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
swift: add support for non-default project domain.
Antonio Messina02a3bbaa3dc5
diff --git a/docs/content/swift.md b/docs/content/swift.mdindex 92cbbec16..6729edc89 100644--- a/docs/content/swift.md+++ b/docs/content/swift.md@@ -76,6 +76,8 @@ User domain - optional (v3 auth)domain> DefaultTenant name - optionaltenant>+Tenant domain - optional (v3 auth)+tenant_domain>Region name - optionalregion>Storage URL - optionaldiff --git a/swift/swift.go b/swift/swift.goindex 54a0db840..3443f31b1 100644--- a/swift/swift.go+++ b/swift/swift.go@@ -67,6 +67,9 @@ func init() {}, {Name: "tenant",Help: "Tenant name - optional",+ }, {+ Name: "tenant_domain",+ Help: "Tenant domain - optional (v3 auth)",}, {Name: "region",Help: "Region name - optional",@@ -163,6 +166,7 @@ func swiftConnection(name string) (*swift.Connection, error) {Tenant: fs.ConfigFile.MustValue(name, "tenant"),Region: fs.ConfigFile.MustValue(name, "region"),Domain: fs.ConfigFile.MustValue(name, "domain"),+ TenantDomain: fs.ConfigFile.MustValue(name, "tenant_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(),