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

@@ -118,7 +118,8 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
$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' }
];
@@ -176,7 +177,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
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.endpoint; }).region;
backupConfig.signatureVersion = 'v4';
} else if (backupConfig.provider === 'scaleway-objectstorage') {
backupConfig.region = $scope.scalewayRegions.find(function (x) { return x.value === $scope.endpoint; }).region;