Add all wasabi regions

This commit is contained in:
Johannes Zellner
2020-05-19 14:52:40 +02:00
parent 735527a0f0
commit 1f0b0d7bd1
3 changed files with 9 additions and 6 deletions

View File

@@ -37,7 +37,8 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
$scope.wasabiRegions = [
{ name: 'EU Central 1', value: 'https://s3.eu-central-1.wasabisys.com' },
{ name: 'US East 1', value: 'https://s3.wasabisys.com' },
{ name: 'US East 1', value: 'https://s3.us-east-1.wasabisys.com' },
{ name: 'US East 2', value: 'https://s3.us-east-2.wasabisys.com ' },
{ name: 'US West 1', value: 'https://s3.us-west-1.wasabisys.com' }
];
@@ -936,7 +937,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
backupConfig.region = 'us-east-1';
backupConfig.signatureVersion = 'v4';
} else if (backupConfig.provider === 'wasabi') {
backupConfig.region = 'us-east-1';
backupConfig.region = $scope.wasabiRegions.find(function (x) { return x.value === $scope.importBackup.endpoint; }).region;
backupConfig.signatureVersion = 'v4';
} else if (backupConfig.provider === 'scaleway-objectstorage') {
backupConfig.region = $scope.scalewayRegions.find(function (x) { return x.value === $scope.importBackup.endpoint; }).region;