Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: resolves Koofr storage connectivity issue

towfiqi999156830971
diff --git a/backend/src/utils/providers.ts b/backend/src/utils/providers.ts
index 4163fee..d8b4483 100644
--- a/backend/src/utils/providers.ts
+++ b/backend/src/utils/providers.ts
@@ -473,7 +473,7 @@ export const providers: Record<string, ProviderConfig> = {
doc: '/storages/connecting-koofr',
settings: koofrSettings,
authTypes: ['client'],
- setup: creds => ['endpoint', creds.endpoint, 'user', creds.email, 'password', creds.password],
+ setup: creds => ['provider', creds.provider, 'user', creds.user, 'password', creds.password],
features: providerFeatures['koofr'],
},
mailru: {
diff --git a/backend/src/utils/providers/koofr.ts b/backend/src/utils/providers/koofr.ts
index c73e71e..16fd1ba 100644
--- a/backend/src/utils/providers/koofr.ts
+++ b/backend/src/utils/providers/koofr.ts
@@ -5,24 +5,15 @@ const koofrSettings = [
fieldType: 'select',
authFieldType: 'client',
required: true,
- default: 'https://app.koofr.net/',
+ default: 'koofr',
options: [
- { label: 'Koofr', value: 'https://app.koofr.net/' },
- { label: 'Digi Storage', value: 'https://storage.rcs-rds.ro/' },
- { label: 'Custom', value: 'custom' },
+ { label: 'Koofr', value: 'koofr' },
+ { label: 'Digi Storage', value: 'digistorage' },
+ { label: 'Other', value: 'other' },
],
description: 'Choose your storage provider.',
command: '--koofr-provider',
},
- {
- label: 'API Endpoint',
- value: 'endpoint',
- fieldType: 'string',
- required: false,
- default: '',
- description: 'The Koofr API endpoint to use.',
- command: '--koofr-endpoint',
- },
{
label: 'Username',
value: 'user',
@@ -44,6 +35,15 @@ const koofrSettings = [
'Your app password. Generate one at https://app.koofr.net/app/admin/preferences/password.',
command: '--koofr-password',
},
+ {
+ label: 'API Endpoint',
+ value: 'endpoint',
+ fieldType: 'string',
+ required: false,
+ default: '',
+ description: 'The Koofr API endpoint to use.',
+ command: '--koofr-endpoint',
+ },
{
label: 'Mount ID',
value: 'mountid',