Allow to specify region for custom s3 v4 compat

This commit is contained in:
Johannes Zellner
2020-06-15 16:51:56 +02:00
parent cb94737519
commit 1d15fd3178
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
if ($scope.configureBackup.region) backupConfig.region = $scope.configureBackup.region;
delete backupConfig.endpoint;
} else if (backupConfig.provider === 'minio' || backupConfig.provider === 's3-v4-compat') {
backupConfig.region = 'us-east-1';
backupConfig.region = $scope.configureBackup.region || 'us-east-1';
backupConfig.acceptSelfSignedCerts = $scope.configureBackup.acceptSelfSignedCerts;
backupConfig.s3ForcePathStyle = true; // might want to expose this in the UI
} else if (backupConfig.provider === 'exoscale-sos') {