Skip to content

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

fix: various storage integration issues

towfiqi044a0d007496
diff --git a/backend/src/managers/BaseStorageManager.ts b/backend/src/managers/BaseStorageManager.ts
index baf3cde..a71bbd5 100644
--- a/backend/src/managers/BaseStorageManager.ts
+++ b/backend/src/managers/BaseStorageManager.ts
@@ -28,7 +28,12 @@ export class BaseStorageManager {
}
const args = ['config', 'create', name, type];
- args.push(...provider.setup(credentials, authType));
+ const setupArgs = provider.setup(credentials, authType);
+ if (setupArgs === false) {
+ throw new Error(`Missing Required credentials.`);
+ }
+
+ args.push(...setupArgs);
// Add any additional settings
if (settings) {
diff --git a/backend/src/utils/providers.ts b/backend/src/utils/providers.ts
index 7b9ab51..c451c5c 100644
--- a/backend/src/utils/providers.ts
+++ b/backend/src/utils/providers.ts
@@ -97,92 +97,147 @@ export interface ProviderConfig {
};
settings?: ProviderSetting[];
doc?: string;
- setup: (credentials: Record<string, string>, type?: string) => string[];
+ setup: (credentials: Record<string, string>, type?: string) => string[] | false;
}
export const providers: Record<string, ProviderConfig> = {
- 'local': {
+ local: {
name: 'Local',
settings: localSettings,
authTypes: ['client'],
- setup: creds => [],
features: providerFeatures['local'],
+ setup: creds => [],
},
- 'b2': {
+ b2: {
name: 'Backblaze B2',
doc: '/storages/connecting-backblaze-b2',
settings: b2Settings,
authTypes: ['client'],
- setup: creds => ['account', creds.account, 'key', creds.key],
features: providerFeatures['b2'],
+ setup: creds => ['account', creds.account, 'key', creds.key],
},
- 's3': {
+ s3: {
name: 'AWS S3',
doc: '/storages/connecting-aws-s3',
settings: s3Settings,
authTypes: ['client'],
+ features: providerFeatures['s3'],
setup: creds => [
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'region',
creds.region,
],
- features: providerFeatures['s3'],
},
- 'drive': {
+ drive: {
name: 'Google Drive',
doc: '/storages/connecting-google-drive',
settings: googleDriveSettings,
authTypes: ['client', 'oauth'],
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token, 'scope', creds.scope || 'drive']
- : [
- 'client_id',
- creds.clientId,
- 'client_secret',
- `$(rclone obscure ${creds.clientSecret})`,
- 'scope',
- creds.scope || 'drive',
- ],
features: providerFeatures['drive'],
- },
- 'onedrive': {
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token, 'scope', creds.scope || 'drive'];
+ } else {
+ if (!creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ 'scope',
+ creds.scope || 'drive',
+ '--drive-client-credentials',
+ ];
+ }
+ },
+ },
+ onedrive: {
name: 'One Drive',
doc: '/storages/connecting-onedrive',
settings: onedriveSettings,
authTypes: ['client', 'oauth'],
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : ['client_id', creds.clientId, 'client_secret', `$(rclone obscure ${creds.clientSecret})`],
features: providerFeatures['onedrive'],
- },
- 'dropbox': {
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ '--onedrive-client-credentials',
+ ];
+ }
+ },
+ },
+ dropbox: {
name: 'DropBox',
doc: '/storages/connecting-dropbox',
settings: dropboxSettings,
authTypes: ['client', 'oauth'],
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : ['client_id', creds.clientId, 'client_secret', `$(rclone obscure ${creds.clientSecret})`],
features: providerFeatures['dropbox'],
- },
- 'box': {
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ '--dropbox-client-credentials',
+ ];
+ }
+ },
+ },
+ box: {
name: 'Box.com',
doc: '/storages/connecting-box',
settings: boxSettings,
authTypes: ['client', 'oauth'],
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : ['client_id', creds.clientId, 'client_secret', `$(rclone obscure ${creds.clientSecret})`],
features: providerFeatures['box'],
- },
- 'azureBlob': {
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ '--box-client-credentials',
+ ];
+ }
+ },
+ },
+ azureBlob: {
name: 'Azure Blob Storage',
doc: '/storages/connecting-azure-blob-storage',
settings: azureblobSettings,
@@ -190,18 +245,32 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['account', creds.account, 'key', `$(rclone obscure ${creds.key})`],
features: providerFeatures['azureBlob'],
},
- 'gcs': {
+ gcs: {
name: 'Google Cloud Storage',
doc: '/storages/connecting-google-cloud-storage',
settings: gcsSettings,
authTypes: ['client', 'oauth'],
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : ['project_number', creds.projectNumber, 'service_account_file', creds.serviceAccountFile],
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.project_number || !creds.service_account_file) {
+ return false;
+ }
+ return [
+ 'project_number',
+ creds.project_number,
+ 'service_account_file',
+ creds.service_account_file,
+ ];
+ }
+ },
features: providerFeatures['gcs'],
},
- 'mega': {
+ mega: {
name: 'Mega',
doc: '/storages/connecting-mega',
authTypes: ['password'],
@@ -209,18 +278,34 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['user', creds.user, 'pass', `$(rclone obscure ${creds.password})`],
features: providerFeatures['mega'],
},
- 'pcloud': {
+ pcloud: {
name: 'pCloud',
doc: '/storages/connecting-pcloud',
authTypes: ['oauth', 'client'],
settings: pcloudSettings,
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : ['client_id', creds.clientId, 'client_secret', `$(rclone obscure ${creds.clientSecret})`],
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ '--pcloud-client-credentials',
+ ];
+ }
+ },
+
features: providerFeatures['pcloud'],
},
- 'swift': {
+ swift: {
name: 'Oracle Swift',
doc: '/storages/connecting-openstack-swift',
settings: swiftSettings,
@@ -237,7 +322,7 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['swift'],
},
- 'storj': {
+ storj: {
name: 'Storj',
doc: '/storages/connecting-storj',
settings: storjSettings,
@@ -245,7 +330,7 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['access_grant', creds.accessGrant],
features: providerFeatures['storj'],
},
- 'seafile': {
+ seafile: {
name: 'SeaFile',
doc: '/storages/connecting-seafile',
settings: seafileSettings,
@@ -262,62 +347,112 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['seafile'],
},
- 'jottacloud': {
+ jottacloud: {
name: 'Jotta Cloud',
doc: '/storages/connecting-jottacloud',
authTypes: ['client', 'password'],
settings: jottacloudSettings,
- setup: creds => ['user', creds.user, 'pass', `$(rclone obscure ${creds.password})`],
features: providerFeatures['jottacloud'],
- },
- 'yandex': {
+ setup: (creds, type) => {
+ if (type === 'password') {
+ return ['user', creds.user, 'pass', `$(rclone obscure ${creds.password})`];
+ } else {
+ if (!creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ '--jottacloud-client-credentials',
+ ];
+ }
+ },
+ },
+ yandex: {
name: 'Yandex Disk',
doc: '/storages/connecting-yandex-disk',
authTypes: ['client', 'oauth'],
settings: yandexSettings,
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : ['client_id', creds.clientId, 'client_secret', `$(rclone obscure ${creds.clientSecret})`],
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ '--yandex-client-credentials',
+ ];
+ }
+ },
features: providerFeatures['yandex'],
},
- 'zoho': {
+ zoho: {
name: 'Zoho WorkDrive',
doc: '/storages/connecting-zoho-workdrive',
authTypes: ['client', 'oauth'],
settings: zohoSettings,
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : [
- 'client_id',
- creds.clientId,
- 'client_secret',
- `$(rclone obscure ${creds.clientSecret})`,
- 'region',
- creds.region,
- ],
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ 'region',
+ creds.region,
+ '--zoho-client-credentials',
+ ];
+ }
+ },
features: providerFeatures['zoho'],
},
- 'hidrive': {
+ hidrive: {
name: 'HiDrive',
doc: '/storages/connecting-hidrive',
settings: hidriveSettings,
authTypes: ['client', 'oauth'],
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : [
- 'client_id',
- creds.clientId,
- 'client_secret',
- `$(rclone obscure ${creds.clientSecret})`,
- 'scope',
- creds.scope,
- ],
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ 'scope',
+ creds.scope,
+ '--hidrive-client-credentials',
+ ];
+ }
+ },
features: providerFeatures['hidrive'],
},
- 'koofr': {
+ koofr: {
name: 'Koofr',
doc: '/storages/connecting-koofr',
settings: koofrSettings,
@@ -332,18 +467,27 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['koofr'],
},
- 'mailru': {
+ mailru: {
name: 'Mail.ru Cloud',
doc: '/storages/connecting-mail-ru-cloud',
- authTypes: ['client', 'oauth'],
+ authTypes: ['oauth', 'password'],
settings: mailruSettings,
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : ['user', creds.user, 'password', `$(rclone obscure ${creds.password})`],
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.user || !creds.password) {
+ return false;
+ }
+ return ['user', creds.user, 'password', `$(rclone obscure ${creds.password})`];
+ }
+ },
features: providerFeatures['mailru'],
},
- 'opendrive': {
+ opendrive: {
name: 'Open Drive',
doc: '/storages/connecting-opendrive',
authTypes: ['password'],
@@ -351,7 +495,7 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['username', creds.username, 'password', `$(rclone obscure ${creds.password})`],
features: providerFeatures['opendrive'],
},
- 'qingstor': {
+ qingstor: {
name: 'QingStor',
doc: '/storages/connecting-qingstor',
authTypes: ['client'],
@@ -366,54 +510,94 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['qingstor'],
},
- 'premiumizeme': {
+ premiumizeme: {
name: 'Premiumize.me',
doc: '/storages/connecting-premiumize-me',
settings: premiumizemeSettings,
authTypes: ['client', 'oauth'],
- setup: (creds, type) =>
- type === 'oauth' ? ['token', creds.token] : ['api_key', `$(rclone obscure ${creds.apiKey})`],
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.api_key || !creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ 'api_key',
+ `$(rclone obscure ${creds.api_key})`,
+ '--premiumizeme-client-credentials',
+ ];
+ }
+ },
features: providerFeatures['premiumizeme'],
},
- 'putio': {
+ putio: {
name: 'Put.io',
doc: '/storages/connecting-put-io',
settings: putioSettings,
authTypes: ['client', 'oauth'],
- setup: (creds, type) =>
- type === 'oauth' ? ['token', creds.token] : ['token', `$(rclone obscure ${creds.token})`],
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', `$(rclone obscure ${creds.token})`];
+ }
+ },
features: providerFeatures['putio'],
},
- 'sharefile': {
+ sharefile: {
name: 'Citrix ShareFile',
doc: '/storages/connecting-citrix-sharefile',
authTypes: ['client', 'oauth'],
settings: citrixSharefileSettings,
- setup: (creds, type) =>
- type === 'oauth'
- ? ['token', creds.token]
- : [
- 'hostname',
- creds.hostname,
- 'client_id',
- creds.clientId,
- 'client_secret',
- `$(rclone obscure ${creds.clientSecret})`,
- ],
+ setup: (creds, type) => {
+ if (type === 'oauth') {
+ if (!creds.token) {
+ return false;
+ }
+ return ['token', creds.token];
+ } else {
+ if (!creds.hostname || !creds.client_id || !creds.client_secret) {
+ return false;
+ }
+ return [
+ 'hostname',
+ creds.hostname,
+ 'client_id',
+ creds.client_id,
+ 'client_secret',
+ `$(rclone obscure ${creds.client_secret})`,
+ '--sharefile-client-credentials',
+ ];
+ }
+ },
features: providerFeatures['sharefile'],
},
- 'sugarsync': {
+ sugarsync: {
name: 'SugarSync',
doc: '/storages/connecting-sugarsync',
authTypes: ['client'],
settings: sugarsyncSettings,
setup: creds => [
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'private_access_key',
- `$(rclone obscure ${creds.privateKey})`,
+ `$(rclone obscure ${creds.private_access_key})`,
'refresh_token',
- creds.refreshToken,
+ creds.refresh_token,
],
features: providerFeatures['sugarsync'],
},
@@ -431,15 +615,17 @@ export const providers: Record<string, ProviderConfig> = {
// ],
// },
- '1fichier': {
+ fichier: {
name: '1Fichier',
doc: '/storages/connecting-1fichier',
authTypes: ['client'],
settings: fichierSettings,
- setup: creds => ['api_key', `$(rclone obscure ${creds.apiKey})`],
+ setup: creds => {
+ return ['api_key', `$(rclone obscure ${creds.api_key})`];
+ },
features: providerFeatures['1fichier'],
},
- 'netstorage': {
+ netstorage: {
name: 'Akamai NetStorage',
doc: '/storages/connecting-akamai-netstorage',
authTypes: ['client'],
@@ -448,64 +634,63 @@ export const providers: Record<string, ProviderConfig> = {
'hostname',
creds.hostname,
'account_name',
- creds.accountName,
+ creds.account_name,
'key',
`$(rclone obscure ${creds.key})`,
],
features: providerFeatures['netstorage'],
},
- 'files': {
+ files: {
name: 'Files.com', // authentication either using apiKey or username/password
doc: '/storages/connecting-files-com',
authTypes: ['client', 'password'],
settings: filesComSettings,
- setup: creds => ['api_key', `$(rclone obscure ${creds.apiKey})`],
+ setup: creds => ['api_key', `$(rclone obscure ${creds.api_key})`],
features: providerFeatures['files'],
},
- 'gofile': {
+ gofile: {
name: 'GoFile',
doc: '/storages/connecting-gofile',
authTypes: ['client'],
settings: gofileSettings,
- setup: creds => ['token', `$(rclone obscure ${creds.access_token})`],
+ setup: creds => ['token', `$(rclone obscure ${creds.token})`],
features: providerFeatures['gofile'],
},
- 'gphotos': {
+ gphotos: {
name: 'Google Photos',
doc: '/storages/connecting-google-photos',
authTypes: ['client', 'password'],
settings: gphotosSettings,
setup: creds => [
'client_id',
- creds.clientId,
+ creds.client_id,
'client_secret',
- `$(rclone obscure ${creds.clientSecret})`,
+ `$(rclone obscure ${creds.client_secret})`,
],
features: providerFeatures['gphotos'],
},
-
- 'internetarchive': {
+ internetarchive: {
name: 'Internet Archive',
doc: '/storages/connecting-internet-archive',
authTypes: ['client'],
settings: internetarchiveSettings,
setup: creds => [
'access_key_id',
- creds.accessKey,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
],
features: providerFeatures['internetarchive'],
},
- 'linkbox': {
+ linkbox: {
name: 'Linkbox',
doc: '/storages/connecting-linkbox',
authTypes: ['client'],
settings: linkboxSettings,
- setup: creds => ['api_key', `$(rclone obscure ${creds.apiKey})`],
+ setup: creds => ['api_key', `$(rclone obscure ${creds.api_key})`],
features: providerFeatures['linkbox'],
},
- 'oracle': {
+ oracle: {
name: 'Oracle Object Storage',
doc: '/storages/connecting-oracle-object-storage',
authTypes: ['client'],
@@ -518,13 +703,13 @@ export const providers: Record<string, ProviderConfig> = {
'region',
creds.region,
'access_key',
- creds.accessKey,
+ creds.access_key,
'secret_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_key})`,
],
features: providerFeatures['oracle'],
},
- 'pikpak': {
+ pikpak: {
name: 'PikPak',
doc: '/storages/connecting-pikpak',
authTypes: ['password'],
@@ -532,15 +717,15 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['username', creds.username, 'password', `$(rclone obscure ${creds.password})`],
features: providerFeatures['pikpak'],
},
- 'pixeldrain': {
+ pixeldrain: {
name: 'Pixeldrain',
doc: '/storages/connecting-pixeldrain',
authTypes: ['client'],
settings: pixeldrainSettings,
- setup: creds => ['api_key', `$(rclone obscure ${creds.apiKey})`],
+ setup: creds => ['api_key', `$(rclone obscure ${creds.api_key})`],
features: providerFeatures['pixeldrain'],
},
- 'proton': {
+ proton: {
name: 'Proton Drive',
doc: '/storages/connecting-proton-drive',
authTypes: ['password'],
@@ -548,14 +733,14 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['username', creds.username, 'password', `$(rclone obscure ${creds.password})`],
features: providerFeatures['proton'],
},
- 'quatrix': {
+ quatrix: {
name: 'Quatrix by Maytech',
doc: '/storages/connecting-quatrix',
authTypes: ['client'],
settings: quatrixSettings,
setup: creds => [
'api_key',
- `$(rclone obscure ${creds.apiKey})`,
+ `$(rclone obscure ${creds.api_key})`,
'user',
creds.user,
'host',
@@ -563,15 +748,15 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['quatrix'],
},
- 'sia': {
+ sia: {
name: 'Sia',
doc: '/storages/connecting-sia',
authTypes: ['client'],
settings: siaSettings,
- setup: creds => ['api_url', creds.apiUrl, 'password', `$(rclone obscure ${creds.password})`],
+ setup: creds => ['api_url', creds.api_url, 'password', `$(rclone obscure ${creds.password})`],
features: providerFeatures['sia'],
},
- 'ulozto': {
+ ulozto: {
name: 'Uloz.to',
doc: '/storages/connecting-uloz-to',
authTypes: ['password'],
@@ -579,7 +764,7 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['username', creds.username, 'password', `$(rclone obscure ${creds.password})`],
features: providerFeatures['ulozto'],
},
- 'hdfs': {
+ hdfs: {
name: 'HDFS',
doc: '/storages/connecting-hdfs',
authTypes: ['password'],
@@ -587,7 +772,7 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['namenode', creds.namenode, 'username', creds.username],
features: providerFeatures['hdfs'],
},
- 'smb': {
+ smb: {
name: 'SMB',
doc: '/storages/connecting-smb',
authTypes: ['password'],
@@ -602,7 +787,7 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['smb'],
},
- 'sftp': {
+ sftp: {
name: 'SFTP',
doc: '/storages/connecting-sftp',
authTypes: ['password'],
@@ -617,7 +802,7 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['sftp'],
},
- 'ftp': {
+ ftp: {
name: 'FTP',
doc: '/storages/connecting-ftp',
authTypes: ['password'],
@@ -632,7 +817,7 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['ftp'],
},
- 'webdav': {
+ webdav: {
name: 'WebDav',
doc: '/storages/connecting-webdav',
authTypes: ['password'],
@@ -647,7 +832,7 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['webdav'],
},
- 'http': {
+ http: {
name: 'HTTP (Read Only)',
doc: '/storages/connecting-http',
authTypes: ['noauth'],
@@ -656,7 +841,7 @@ export const providers: Record<string, ProviderConfig> = {
features: providerFeatures['http'],
},
// S3 Compatible API
- 'r2': {
+ r2: {
name: 'Cloudflare R2',
doc: '/storages/connecting-cloudflare-r2',
authTypes: ['client'],
@@ -666,16 +851,16 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Cloudflare',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
`${creds.endpoint}.r2.cloudflarestorage.com`,
'acl',
'private',
],
},
- 'oss': {
+ oss: {
name: 'Alibaba Cloud Object Storage System (OSS)',
doc: '/storages/connecting-alibaba-cloud-oss',
authTypes: ['client'],
@@ -685,9 +870,9 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Alibaba',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
'acl',
@@ -696,7 +881,7 @@ export const providers: Record<string, ProviderConfig> = {
creds.storage_class,
],
},
- 'ceph': {
+ ceph: {
name: 'Ceph',
doc: '/storages/connecting-ceph',
authTypes: ['client'],
@@ -706,16 +891,16 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Ceph', //TODO: No region field
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
`${creds.endpoint}`,
'acl',
'private',
],
},
- 'dreamobjects': {
+ dreamobjects: {
name: 'DreamObjects',
doc: '/storages/connecting-dreamhost',
authTypes: ['client'],
@@ -725,16 +910,16 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'DreamHost', //TODO: No region field
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
'acl',
'private',
],
},
- 'spaces': {
+ spaces: {
name: 'DigitalOcean Spaces',
doc: '/storages/connecting-digitalocean-spaces',
authTypes: ['client'],
@@ -744,14 +929,14 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'DigitalOcean', //TODO: No region field
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
],
},
- 'obs': {
+ obs: {
name: 'Huawei OBS',
doc: '/storages/connecting-huawei-obs',
authTypes: ['client'],
@@ -761,9 +946,9 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'HuaweiOBS',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'region',
creds.region,
'endpoint',
@@ -772,7 +957,7 @@ export const providers: Record<string, ProviderConfig> = {
'private',
],
},
- 'ibmcos': {
+ ibmcos: {
name: 'IBM Cloud Object Storage',
doc: '/storages/connecting-ibm-cos-s3',
authTypes: ['client'],
@@ -782,9 +967,10 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'IBMCOS',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
+ 'region',
creds.region,
'endpoint',
creds.endpoint,
@@ -794,7 +980,7 @@ export const providers: Record<string, ProviderConfig> = {
'private',
],
},
- 'idrive': {
+ idrive: {
name: 'IDrive e2',
doc: '/storages/connecting-idrive-e2',
authTypes: ['client'],
@@ -804,14 +990,14 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'IDrive',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
],
},
- 'ionos': {
+ ionos: {
name: 'IONOS Cloud',
doc: '/storages/connecting-ionos-cloud',
authTypes: ['client'],
@@ -821,14 +1007,14 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'IONOS', //TODO: No region field
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
],
},
- 'minio': {
+ minio: {
name: 'Minio',
doc: '/storages/connecting-minio',
authTypes: ['client'],
@@ -838,16 +1024,16 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Minio',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
'region',
creds.region,
],
},
- 'outscale': {
+ outscale: {
name: 'Outscale Object Storage',
doc: '/storages/connecting-outscale',
authTypes: ['client'],
@@ -857,16 +1043,16 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Outscale',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
`oos.${creds.region}.outscale.com`,
'region',
creds.region,
],
},
- 'qiniu': {
+ qiniu: {
name: 'Qiniu Object Storage (KODO)',
authTypes: ['client'],
settings: qiniuSettings,
@@ -876,9 +1062,9 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Qiniu',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
`s3.${creds.region}.qiniucs.com `,
'region',
@@ -891,7 +1077,7 @@ export const providers: Record<string, ProviderConfig> = {
creds.acl,
],
},
- 'rackcorp': {
+ rackcorp: {
name: 'RackCorp',
authTypes: ['client'],
settings: rackcorpSettings,
@@ -901,9 +1087,9 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'RackCorp',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
`${creds.region}.s3.rackcorp.com`,
'region',
@@ -912,7 +1098,7 @@ export const providers: Record<string, ProviderConfig> = {
creds.region,
],
},
- 'rclone': {
+ rclone: {
name: 'Rclone Serve S3',
authTypes: ['client'],
settings: rcloneSettings,
@@ -921,9 +1107,9 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Rclone',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
'use_multipart_uploads',
@@ -931,7 +1117,7 @@ export const providers: Record<string, ProviderConfig> = {
],
},
- 'scaleway': {
+ scaleway: {
name: 'Scaleway Object Storage',
authTypes: ['client'],
settings: scalewaySettings,
@@ -941,9 +1127,9 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Scaleway',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
'region',
@@ -962,7 +1148,7 @@ export const providers: Record<string, ProviderConfig> = {
creds.acl || 'private',
],
},
- 'lyvecloud': {
+ lyvecloud: {
name: 'Seagate LyveCloud',
authTypes: ['client'],
settings: lyvecloudSettings,
@@ -972,14 +1158,14 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'LyveCloud',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
],
},
- 'seaweedfs': {
+ seaweedfs: {
name: 'SeaweedFS',
authTypes: ['client'],
settings: seaweedfsSettings,
@@ -989,14 +1175,14 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'SeaweedFS',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
],
},
- 'selectel': {
+ selectel: {
name: 'Selectel',
authTypes: ['client'],
settings: selectelSettings,
@@ -1006,9 +1192,9 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Selectel',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
's3.ru-1.storage.selcloud.ru',
'region',
@@ -1017,7 +1203,7 @@ export const providers: Record<string, ProviderConfig> = {
'private',
],
},
- 'wasabi': {
+ wasabi: {
name: 'Wasabi',
authTypes: ['client'],
settings: wasabiSettings,
@@ -1027,16 +1213,16 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Wasabi',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
`s3.${creds.region === 'us-east-1' ? '' : creds.region}.wasabisys.com`,
'region',
creds.region,
],
},
- 'leviia': {
+ leviia: {
name: 'Leviia',
doc: '/storages/connecting-leviia',
authTypes: ['client'],
@@ -1046,16 +1232,16 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Leviia',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
'acl',
'private',
],
},
- 'liara': {
+ liara: {
name: 'Liara',
authTypes: ['client'],
settings: liaraSettings,
@@ -1065,14 +1251,14 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Liara',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
'storage.iran.liara.space',
],
},
- 'linode': {
+ linode: {
name: 'Linode Object Storage',
authTypes: ['client'],
settings: linodeSettings,
@@ -1082,14 +1268,14 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Linode',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
],
},
- 'magalu': {
+ magalu: {
name: 'Magalu',
authTypes: ['client'],
settings: magaluSettings,
@@ -1099,14 +1285,14 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Magalu',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
],
},
- 'arvan': {
+ arvan: {
name: 'ArvanCloud',
authTypes: ['client'],
settings: arvanSettings,
@@ -1116,16 +1302,16 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'ArvanCloud',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'region',
creds.region,
'endpoint',
creds.endpoint || `s3.${creds.region}.arvanstorage.ir`,
],
},
- 'tencent': {
+ tencent: {
name: 'Tencent Cloud Object Storage (COS)',
authTypes: ['client'],
settings: tencentSettings,
@@ -1135,14 +1321,14 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'TencentCOS',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
creds.endpoint,
],
},
- 'petabox': {
+ petabox: {
name: 'Petabox',
authTypes: ['client'],
settings: petaboxSettings,
@@ -1152,16 +1338,16 @@ export const providers: Record<string, ProviderConfig> = {
'provider',
'Petabox',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'endpoint',
's3.petabox.io',
'region',
'eu-east-1', //Avaialble in One location only: https://docs.petabox.io/http-api-compatible-with-amazon-s3/api-reference/bucket/getbucketlocation
],
},
- 'synologyc2': {
+ synologyc2: {
name: 'Synology C2',
authTypes: ['client'],
settings: synologySettings,
@@ -1169,11 +1355,11 @@ export const providers: Record<string, ProviderConfig> = {
doc: '/storages/connecting-synology',
setup: creds => [
'provider',
- 'ArvanCloud',
+ 'SynologyC2',
'access_key_id',
- creds.accessKeyId,
+ creds.access_key_id,
'secret_access_key',
- `$(rclone obscure ${creds.secretKey})`,
+ `$(rclone obscure ${creds.secret_access_key})`,
'region',
creds.region,
'endpoint',
@@ -1182,7 +1368,7 @@ export const providers: Record<string, ProviderConfig> = {
'true',
],
},
- 'drime': {
+ drime: {
name: 'Drime',
doc: '/storages/connecting-drime',
authTypes: ['client'],
@@ -1190,7 +1376,7 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['access_token', creds.access_token],
features: providerFeatures['drime'],
},
- 'filelu': {
+ filelu: {
name: 'FileLu',
doc: '/storages/connecting-filelu',
authTypes: ['client'],
@@ -1198,7 +1384,7 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['key', creds.key],
features: providerFeatures['filelu'],
},
- 'filen': {
+ filen: {
name: 'Filen',
doc: '/storages/connecting-filen',
authTypes: ['password'],
@@ -1213,7 +1399,7 @@ export const providers: Record<string, ProviderConfig> = {
],
features: providerFeatures['filen'],
},
- 'internxt': {
+ internxt: {
name: 'Internxt Drive',
doc: '/storages/connecting-internxt',
authTypes: ['password'],
@@ -1221,7 +1407,7 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['email', creds.email, 'pass', `$(rclone obscure ${creds.password})`],
features: providerFeatures['internxt'],
},
- 'shade': {
+ shade: {
name: 'Shade',
doc: '/storages/connecting-shade',
authTypes: ['client'],
diff --git a/backend/src/utils/providers/boxCom.ts b/backend/src/utils/providers/boxCom.ts
index 1dc1696..88af1af 100644
--- a/backend/src/utils/providers/boxCom.ts
+++ b/backend/src/utils/providers/boxCom.ts
@@ -77,17 +77,6 @@ const boxSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--box-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- authFieldType: 'client',
- fieldType: 'bool',
- required: false,
- default: false,
- description:
- 'Use client credentials OAuth flow. This will use the OAUTH2 client Credentials Flow as described in RFC 6749.',
- command: '--box-client-credentials',
- },
{
label: 'Root Folder ID',
value: 'root_folder_id',
@@ -149,8 +138,7 @@ const boxSettings = [
fieldType: 'encoding',
required: false,
default: 'slash,backslash,del,ctl,rightspace,invalidutf8,dot',
- description:
- 'The encoding for the backend.',
+ description: 'The encoding for the backend.',
command: '--box-encoding',
},
{
diff --git a/backend/src/utils/providers/dropbox.ts b/backend/src/utils/providers/dropbox.ts
index b1476db..b301678 100644
--- a/backend/src/utils/providers/dropbox.ts
+++ b/backend/src/utils/providers/dropbox.ts
@@ -47,16 +47,6 @@ const dropboxSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--dropbox-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description: 'Use client credentials OAuth flow instead of interactive login.',
- command: '--dropbox-client-credentials',
- },
{
label: 'Chunk Size',
value: 'chunk_size',
diff --git a/backend/src/utils/providers/gcs.ts b/backend/src/utils/providers/gcs.ts
index 921438a..10e6b56 100644
--- a/backend/src/utils/providers/gcs.ts
+++ b/backend/src/utils/providers/gcs.ts
@@ -218,17 +218,6 @@ const gcsSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--gcs-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description:
- 'Use client credentials OAuth flow. This will use the OAUTH2 client Credentials Flow as described in RFC 6749.',
- command: '--gcs-client-credentials',
- },
{
label: 'Access Token',
value: 'access_token',
@@ -265,8 +254,7 @@ const gcsSettings = [
fieldType: 'bool',
required: false,
default: false,
- description:
- 'If set, gzip-encoded objects will be decompressed on download.',
+ description: 'If set, gzip-encoded objects will be decompressed on download.',
command: '--gcs-decompress',
},
{
@@ -284,8 +272,7 @@ const gcsSettings = [
fieldType: 'encoding',
required: false,
default: 'slash,crlf,invalidutf8,dot',
- description:
- 'The encoding for the backend.',
+ description: 'The encoding for the backend.',
command: '--gcs-encoding',
},
{
diff --git a/backend/src/utils/providers/gdrive.ts b/backend/src/utils/providers/gdrive.ts
index 554bb29..c0374f3 100644
--- a/backend/src/utils/providers/gdrive.ts
+++ b/backend/src/utils/providers/gdrive.ts
@@ -84,16 +84,6 @@ const googleDriveSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--drive-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description: 'Use client credentials OAuth flow instead of interactive login.',
- command: '--drive-client-credentials',
- },
{
label: 'Root Folder ID',
value: 'root_folder_id',
@@ -147,8 +137,7 @@ const googleDriveSettings = [
fieldType: 'bool',
required: false,
default: false,
- description:
- 'Copy the actual file contents of shortcuts instead of the shortcut itself.',
+ description: 'Copy the actual file contents of shortcuts instead of the shortcut itself.',
command: '--drive-copy-shortcut-content',
},
{
@@ -306,8 +295,7 @@ const googleDriveSettings = [
fieldType: 'bool',
required: false,
default: false,
- description:
- 'Allow downloading files that Google has flagged as potential malware or spam.',
+ description: 'Allow downloading files that Google has flagged as potential malware or spam.',
command: '--drive-acknowledge-abuse',
},
{
@@ -403,8 +391,7 @@ const googleDriveSettings = [
fieldType: 'bool',
required: false,
default: false,
- description:
- 'Skip shortcut files instead of following them to the original file.',
+ description: 'Skip shortcut files instead of following them to the original file.',
command: '--drive-skip-shortcuts',
},
{
@@ -413,8 +400,7 @@ const googleDriveSettings = [
fieldType: 'bool',
required: false,
default: false,
- description:
- 'Skip shortcut files that point to deleted or inaccessible files.',
+ description: 'Skip shortcut files that point to deleted or inaccessible files.',
command: '--drive-skip-dangling-shortcuts',
},
{
@@ -452,8 +438,7 @@ const googleDriveSettings = [
fieldType: 'bits',
required: false,
default: 'off',
- description:
- 'Control whether file permissions should be read or written in metadata.',
+ description: 'Control whether file permissions should be read or written in metadata.',
command: '--drive-metadata-permissions',
},
{
diff --git a/backend/src/utils/providers/gphotos.ts b/backend/src/utils/providers/gphotos.ts
index e5a9030..2edf9f4 100644
--- a/backend/src/utils/providers/gphotos.ts
+++ b/backend/src/utils/providers/gphotos.ts
@@ -57,16 +57,16 @@ const gphotosSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--gphotos-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description: 'Use client credentials OAuth flow instead of interactive login.',
- command: '--gphotos-client-credentials',
- },
+ // {
+ // label: 'Client Credentials',
+ // value: 'client_credentials',
+ // fieldType: 'bool',
+ // authFieldType: 'client',
+ // required: false,
+ // default: false,
+ // description: 'Use client credentials OAuth flow instead of interactive login.',
+ // command: '--gphotos-client-credentials',
+ // },
{
label: 'Read Size',
value: 'read_size',
diff --git a/backend/src/utils/providers/hidrive.ts b/backend/src/utils/providers/hidrive.ts
index 7d78f32..7c683da 100644
--- a/backend/src/utils/providers/hidrive.ts
+++ b/backend/src/utils/providers/hidrive.ts
@@ -25,8 +25,7 @@ const hidriveSettings = [
fieldType: 'select',
required: false,
default: 'rw',
- description:
- 'Access permissions to use when requesting access from HiDrive.',
+ description: 'Access permissions to use when requesting access from HiDrive.',
command: '--hidrive-scope-access',
options: [
{ label: 'Read and Write', value: 'rw' },
@@ -61,17 +60,6 @@ const hidriveSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--hidrive-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description:
- 'Use client credentials OAuth flow. This will use the OAUTH2 client Credentials Flow as described in RFC 6749.',
- command: '--hidrive-client-credentials',
- },
{
label: 'Role Scope',
value: 'scope_role',
diff --git a/backend/src/utils/providers/jottacloud.ts b/backend/src/utils/providers/jottacloud.ts
index 4545586..f3b0804 100644
--- a/backend/src/utils/providers/jottacloud.ts
+++ b/backend/src/utils/providers/jottacloud.ts
@@ -56,17 +56,6 @@ const jottacloudSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--jottacloud-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description:
- 'Use client credentials OAuth flow. This will use the OAUTH2 client Credentials Flow as described in RFC 6749.',
- command: '--jottacloud-client-credentials',
- },
{
label: 'MD5 Memory Limit',
value: 'md5_memory_limit',
diff --git a/backend/src/utils/providers/mailru.ts b/backend/src/utils/providers/mailru.ts
index 1878ee9..e8619a3 100644
--- a/backend/src/utils/providers/mailru.ts
+++ b/backend/src/utils/providers/mailru.ts
@@ -3,7 +3,7 @@ const mailruSettings = [
label: 'User Name',
value: 'user',
fieldType: 'string',
- authFieldType: 'client',
+ authFieldType: 'password',
required: true,
default: '',
description: 'User name (usually email).',
@@ -13,7 +13,7 @@ const mailruSettings = [
label: 'App Password',
value: 'pass',
fieldType: 'string',
- authFieldType: 'client',
+ authFieldType: 'password',
required: true,
default: '',
description:
diff --git a/backend/src/utils/providers/onedrive.ts b/backend/src/utils/providers/onedrive.ts
index 17b51d6..3d105ff 100644
--- a/backend/src/utils/providers/onedrive.ts
+++ b/backend/src/utils/providers/onedrive.ts
@@ -42,8 +42,7 @@ const onedriveSettings = [
authFieldType: 'client',
required: false,
default: '',
- description:
- "ID of the service principal's tenant (also called Directory ID).",
+ description: "ID of the service principal's tenant (also called Directory ID).",
command: '--onedrive-tenant',
},
{
@@ -74,15 +73,6 @@ const onedriveSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--onedrive-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- required: false,
- default: false,
- description: 'Use client credentials OAuth flow instead of interactive login.',
- command: '--onedrive-client-credentials',
- },
{
label: 'Chunk Size',
value: 'chunk_size',
@@ -277,8 +267,7 @@ const onedriveSettings = [
fieldType: 'bits',
required: false,
default: 'off',
- description:
- 'Control whether file permissions should be read or written in metadata.',
+ description: 'Control whether file permissions should be read or written in metadata.',
command: '--onedrive-metadata-permissions',
},
{
diff --git a/backend/src/utils/providers/pcloud.ts b/backend/src/utils/providers/pcloud.ts
index f226f58..dd6563b 100644
--- a/backend/src/utils/providers/pcloud.ts
+++ b/backend/src/utils/providers/pcloud.ts
@@ -47,25 +47,13 @@ const pcloudSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--pcloud-token-url',
},
- {
- label: 'Use client credentials OAuth',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description:
- 'Use client credentials OAuth flow. This will use the OAUTH2 client Credentials Flow as described in RFC 6749.',
- command: '--pcloud-client-credentials',
- },
{
label: 'Encoding',
value: 'encoding',
fieldType: 'encoding',
required: false,
default: 'slash,backslash,del,ctl,invalidutf8,dot',
- description:
- 'The encoding for the backend.',
+ description: 'The encoding for the backend.',
command: '--pcloud-encoding',
},
{
@@ -98,8 +86,7 @@ const pcloudSettings = [
authFieldType: 'password',
required: false,
default: '',
- description:
- 'Your pcloud username. Only required if you want to use the cleanup command.',
+ description: 'Your pcloud username. Only required if you want to use the cleanup command.',
command: '--pcloud-username',
},
{
diff --git a/backend/src/utils/providers/premiumizeme.ts b/backend/src/utils/providers/premiumizeme.ts
index ff5d7c0..59f40c7 100644
--- a/backend/src/utils/providers/premiumizeme.ts
+++ b/backend/src/utils/providers/premiumizeme.ts
@@ -6,7 +6,7 @@ const premiumizemeSettings = [
authFieldType: 'client',
required: true,
default: '',
- description: 'OAuth Client Id. Leave blank normally.',
+ description: 'OAuth Client Id',
command: '--premiumizeme-client-id',
},
{
@@ -16,7 +16,7 @@ const premiumizemeSettings = [
authFieldType: 'client',
required: true,
default: '',
- description: 'OAuth Client Secret. Leave blank normally.',
+ description: 'OAuth Client Secret',
command: '--premiumizeme-client-secret',
},
{
@@ -26,7 +26,7 @@ const premiumizemeSettings = [
authFieldType: 'client',
required: true,
default: '',
- description: 'API Key. This is not normally used - use oauth instead.',
+ description: 'API Key for Premiumize.me. Generate here: https://www.premiumize.me/apikeys',
command: '--premiumizeme-api-key',
},
{
@@ -57,17 +57,6 @@ const premiumizemeSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--premiumizeme-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description:
- 'Use client credentials OAuth flow. This will use the OAUTH2 client Credentials Flow as described in RFC 6749.',
- command: '--premiumizeme-client-credentials',
- },
{
label: 'Encoding',
value: 'encoding',
diff --git a/backend/src/utils/providers/sharefile.ts b/backend/src/utils/providers/sharefile.ts
index 7af45da..16c37d2 100644
--- a/backend/src/utils/providers/sharefile.ts
+++ b/backend/src/utils/providers/sharefile.ts
@@ -66,17 +66,6 @@ const citrixSharefileSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--sharefile-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description:
- 'Use client credentials OAuth flow. This will use the OAUTH2 client Credentials Flow as described in RFC 6749.',
- command: '--sharefile-client-credentials',
- },
{
label: 'Upload Cutoff',
value: 'upload_cutoff',
diff --git a/backend/src/utils/providers/yandex.ts b/backend/src/utils/providers/yandex.ts
index 3130626..b8dff79 100644
--- a/backend/src/utils/providers/yandex.ts
+++ b/backend/src/utils/providers/yandex.ts
@@ -47,17 +47,6 @@ const yandexSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--yandex-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description:
- 'Use client credentials OAuth flow. This will use the OAUTH2 client Credentials Flow as described in RFC 6749.',
- command: '--yandex-client-credentials',
- },
{
label: 'Hard Delete',
value: 'hard_delete',
diff --git a/backend/src/utils/providers/zoho.ts b/backend/src/utils/providers/zoho.ts
index 3118c46..787da20 100644
--- a/backend/src/utils/providers/zoho.ts
+++ b/backend/src/utils/providers/zoho.ts
@@ -66,17 +66,6 @@ const zohoSettings = [
description: 'Token server url. Leave blank to use the provider defaults.',
command: '--zoho-token-url',
},
- {
- label: 'Client Credentials',
- value: 'client_credentials',
- fieldType: 'bool',
- authFieldType: 'client',
- required: false,
- default: false,
- description:
- 'Use client credentials OAuth flow. This will use the OAUTH2 client Credentials Flow as described in RFC 6749.',
- command: '--zoho-client-credentials',
- },
{
label: 'Upload Cutoff',
value: 'upload_cutoff',
diff --git a/backend/src/utils/rclone/rclone.ts b/backend/src/utils/rclone/rclone.ts
index 422123e..bd32353 100644
--- a/backend/src/utils/rclone/rclone.ts
+++ b/backend/src/utils/rclone/rclone.ts
@@ -25,7 +25,6 @@ export function runRcloneCommand(args: string[], env?: Record<string, string>):
const rcProcess = spawn(rcloneBinary, args, { env: envVars });
let output = '';
let errorOutput = '';
- // console.log('runRcloneCommand :', ['rclone', ...args].join(' '), envVars);
rcProcess.stdout?.on('data', (data: Buffer) => {
// console.log('[rclone] Data :', data.toString());
@@ -38,7 +37,6 @@ export function runRcloneCommand(args: string[], env?: Record<string, string>):
});
rcProcess.on('close', (code: number) => {
- console.log('[rclone] Close Fired!! Code :', code);
if (code === 0) {
const outputRes = output.trim();
const errorOutputRes = errorOutput.trim();
diff --git a/frontend/public/providers/1fichier.png b/frontend/public/providers/fichier.png
similarity index 100%
rename from frontend/public/providers/1fichier.png
rename to frontend/public/providers/fichier.png
diff --git a/frontend/src/components/Storage/AddStorage/AddStorage.tsx b/frontend/src/components/Storage/AddStorage/AddStorage.tsx
index 82f1283..2a8dbf2 100644
--- a/frontend/src/components/Storage/AddStorage/AddStorage.tsx
+++ b/frontend/src/components/Storage/AddStorage/AddStorage.tsx
@@ -221,6 +221,7 @@ const AddStorage = ({ close }: AddStorageProps) => {
fieldValue={storageType}
full={true}
onUpdate={(val: string) => {
+ setCurrentAuthType('');
setStorageCredentials({});
setStorageSettings({});
setStorageType(val);
diff --git a/frontend/src/components/Storage/StorageAuthSettings/StorageAuthSettings.tsx b/frontend/src/components/Storage/StorageAuthSettings/StorageAuthSettings.tsx
index d6c1380..5d44f3b 100644
--- a/frontend/src/components/Storage/StorageAuthSettings/StorageAuthSettings.tsx
+++ b/frontend/src/components/Storage/StorageAuthSettings/StorageAuthSettings.tsx
@@ -108,6 +108,9 @@ const StorageAuthSettings = ({
<p>
<strong>Step 4:</strong> Paste the copied content in the <strong>OAuth Access Token</strong> field above.
</p>
+ <p>
+ <strong>Step 5:</strong> If you no longer need Rclone, you can safely remove it from your system.
+ </p>
</>
)}
</div>
diff --git a/frontend/src/utils/index.ts b/frontend/src/utils/index.ts
index 58e5da6..380e076 100644
--- a/frontend/src/utils/index.ts
+++ b/frontend/src/utils/index.ts
@@ -7,6 +7,5 @@ export * from './helpers';
export * from './plans';
export * from './progressHelpers';
export * from './restore';
-export * from './storageProviders';
export * from './getIconNameforFile';
// Note: dummy.ts is excluded as it's likely for testing/development only
diff --git a/frontend/src/utils/storageProviders.ts b/frontend/src/utils/storageProviders.ts
deleted file mode 100644
index 8c9b8c9..0000000
--- a/frontend/src/utils/storageProviders.ts
+++ /dev/null
@@ -1,409 +0,0 @@
-export const storageProviders = {
- '1fichier': {
- id: '1fichier',
- name: '1Fichier',
- fields: [{ label: 'API Key', value: 'apiKey' }],
- },
- netstorage: {
- id: 'akamai',
- name: 'Akamai Netstorage',
- fields: [
- { label: 'Hostname', value: 'hostname' },
- { label: 'Account Name', value: 'accountName' },
- { label: 'Key', value: 'key' },
- ],
- },
- amazonS3: {
- id: 'amazonS3',
- name: 'Amazon S3',
- fields: [
- { label: 'AccessKey ID', value: 'accessKeyId' },
- { label: 'Secret Key', value: 'secretKey' },
- { label: 'Region', value: 'region' },
- ],
- },
- backblaze: {
- id: 'backblaze',
- name: 'Backblaze B2',
- fields: [
- { label: 'Account ID', value: 'accountId' },
- { label: 'Application Key', value: 'applicationKey' },
- ],
- },
- box: {
- id: 'box',
- name: 'Box',
- fields: [
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- ],
- },
- sharefile: {
- id: 'sharefile',
- name: 'Citrix ShareFile',
- fields: [
- { label: 'Hostname', value: 'hostname' },
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- ],
- },
- dropbox: {
- id: 'dropbox',
- name: 'Dropbox',
- fields: [
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- ],
- },
- filesCom: {
- id: 'filesCom',
- name: 'Files.com',
- fields: [{ label: 'API Key', value: 'apiKey' }],
- },
- gofile: {
- id: 'gofile',
- name: 'Gofile',
- fields: [{ label: 'Token', value: 'token' }],
- },
- gcs: {
- id: 'gcs',
- name: 'Google Cloud Storage',
- fields: [
- { label: 'Project Number', value: 'projectNumber' },
- { label: 'Service Account File', value: 'serviceAccountFile' },
- ],
- },
- gdrive: {
- id: 'gdrive',
- name: 'Google Drive',
- fields: [
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- { label: 'Scope', value: 'scope' },
- ],
- },
- gphotos: {
- id: 'gphotos',
- name: 'Google Photos',
- fields: [
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- ],
- },
- hdfs: {
- id: 'hdfs',
- name: 'HDFS',
- fields: [
- { label: 'Namenode', value: 'namenode' },
- { label: 'Username', value: 'username' },
- ],
- },
- hidrive: {
- id: 'hidrive',
- name: 'HiDrive',
- fields: [
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- { label: 'Scope', value: 'scope' },
- ],
- },
-
- archive: {
- id: 'internetArchive',
- name: 'Internet Archive',
- fields: [
- { label: 'Access Key', value: 'accessKey' },
- { label: 'Secret Key', value: 'secretKey' },
- ],
- },
- jotta: {
- id: 'jotta',
- name: 'Jottacloud',
- fields: [
- { label: 'User', value: 'user' },
- { label: 'Password', value: 'password' },
- ],
- },
- koofr: {
- id: 'koofr',
- name: 'Koofr',
- fields: [
- { label: 'Endpoint', value: 'endpoint' },
- { label: 'Email', value: 'email' },
- { label: 'Password', value: 'password' },
- ],
- },
- linkbox: {
- id: 'linkbox',
- name: 'Linkbox',
- fields: [{ label: 'API Key', value: 'apiKey' }],
- },
- mailru: {
- id: 'mailru',
- name: 'Mail.ru Cloud',
- fields: [
- { label: 'User', value: 'user' },
- { label: 'Password', value: 'password' },
- ],
- },
- mega: {
- id: 'mega',
- name: 'Mega',
- fields: [
- { label: 'User', value: 'user' },
- { label: 'Password', value: 'password' },
- ],
- },
- // memory: {
- // id: 'memory',
- // name: 'Memory',
- // },
- azureBlob: {
- id: 'azureBlob',
- name: 'Azure Blob Storage',
- fields: [
- { label: 'Account', value: 'account' },
- { label: 'Key', value: 'key' },
- ],
- },
- azureFiles: {
- id: 'azureFiles',
- name: 'Azure Files Storage',
- fields: [
- { label: 'Account', value: 'account' },
- { label: 'Key', value: 'key' },
- ],
- },
- onedrive: {
- id: 'onedrive',
- name: 'OneDrive',
- fields: [
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- ],
- },
- opendrive: {
- id: 'opendrive',
- name: 'OpenDrive',
- fields: [
- { label: 'Username', value: 'username' },
- { label: 'Password', value: 'password' },
- ],
- },
- swift: {
- id: 'swift',
- name: 'OpenStack Swift',
- fields: [
- { label: 'User', value: 'user' },
- { label: 'Key', value: 'key' },
- { label: 'Auth URL', value: 'authUrl' },
- { label: 'Tenant', value: 'tenant' },
- ],
- },
- oracle: {
- id: 'oracle',
- name: 'Oracle Object Storage',
- fields: [
- { label: 'Namespace', value: 'namespace' },
- { label: 'Compartment', value: 'compartment' },
- { label: 'Region', value: 'region' },
- { label: 'Access Key', value: 'accessKey' },
- { label: 'Secret Key', value: 'secretKey' },
- ],
- },
- pcloud: {
- id: 'pcloud',
- name: 'pCloud',
- fields: [
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- ],
- },
- pikpak: {
- id: 'pikpak',
- name: 'PikPak',
- fields: [
- { label: 'Username', value: 'username' },
- { label: 'Password', value: 'password' },
- ],
- },
- pixeldrain: {
- id: 'pixeldrain',
- name: 'Pixeldrain',
- fields: [{ label: 'API Key', value: 'apiKey' }],
- },
- premiumize: {
- id: 'premiumize',
- name: 'premiumize.me',
- fields: [{ label: 'Api Key', value: 'apiKey' }],
- },
- putio: {
- id: 'putio',
- name: 'put.io',
- fields: [{ label: 'Token', value: 'token' }],
- },
- proton: {
- id: 'proton',
- name: 'Proton Drive',
- fields: [
- { label: 'Username', value: 'username' },
- { label: 'Password', value: 'password' },
- ],
- },
- qingstor: {
- id: 'qingstor',
- name: 'QingStor',
- fields: [
- { label: 'AccessKey Id', value: 'accessKeyId' },
- { label: 'Secret Key', value: 'secretKey' },
- { label: 'Zone', value: 'zone' },
- ],
- },
- quatrix: {
- id: 'quatrix',
- name: 'Quatrix by Maytech',
- fields: [
- { label: 'API Key', value: 'apiKey' },
- { label: 'User', value: 'user' },
- { label: 'Host', value: 'host' },
- ],
- },
- seafile: {
- id: 'seafile',
- name: 'Seafile',
- fields: [
- { label: 'URL', value: 'url' },
- { label: 'User', value: 'user' },
- { label: 'Password', value: 'password' },
- { label: 'Library', value: 'library' },
- ],
- },
- sia: {
- id: 'sia',
- name: 'Sia',
- fields: [
- { label: 'API URL', value: 'apiUrl' },
- { label: 'Password', value: 'password' },
- ],
- },
- sugarsync: {
- id: 'sugarsync',
- name: 'SugarSync',
- fields: [
- { label: 'Access Key ID', value: 'accessKeyId' },
- { label: 'Private Key', value: 'privateKey' },
- { label: 'Refresh Token', value: 'refreshToken' },
- ],
- },
- storj: {
- id: 'storj',
- name: 'Storj',
- fields: [{ label: 'Access Grant', value: 'accessGrant' }],
- },
- ulozto: {
- id: 'ulozto',
- name: 'Uloz.to',
- fields: [
- { label: 'Username', value: 'username' },
- { label: 'Password', value: 'password' },
- ],
- },
- yandex: {
- id: 'yandex',
- name: 'Yandex Disk',
- fields: [
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- ],
- },
- zoho: {
- id: 'zoho',
- name: 'Zoho WorkDrive',
- fields: [
- { label: 'Client ID', value: 'clientId' },
- { label: 'Client Secret', value: 'clientSecret' },
- { label: 'Region', value: 'region' },
- ],
- },
- ftp: {
- id: 'ftp',
- name: 'FTP',
- fields: [
- { label: 'Host', value: 'host' },
- { label: 'User', value: 'user' },
- { label: 'Password', value: 'password' },
- ],
- },
- http: {
- id: 'http',
- name: 'HTTP',
- fields: [{ label: 'URL', value: 'url' }],
- },
- sftp: {
- id: 'sftp',
- name: 'SFTP',
- fields: [
- { label: 'Host', value: 'host' },
- { label: 'User', value: 'user' },
- { label: 'Password', value: 'password' },
- ],
- },
- smb: {
- id: 'smb',
- name: 'SMB',
- fields: [
- { label: 'Host', value: 'host' },
- { label: 'Username', value: 'username' },
- { label: 'Password', value: 'password' },
- ],
- },
- webdav: {
- id: 'webdav',
- name: 'WebDAV',
- fields: [
- { label: 'URL', value: 'url' },
- { label: 'User', value: 'user' },
- { label: 'Password', value: 'password' },
- ],
- },
- local: {
- id: 'local',
- name: 'The local filesystem',
- fields: [],
- },
- drime: {
- id: 'drime',
- name: 'Drime',
- fields: [{ label: 'API Access Token', value: 'access_token' }],
- },
- filelu: {
- id: 'filelu',
- name: 'FileLu',
- fields: [{ label: 'Key', value: 'key' }],
- },
- filen: {
- id: 'filen',
- name: 'Filen',
- fields: [
- { label: 'Email', value: 'email' },
- { label: 'Password', value: 'password' },
- { label: 'API Key', value: 'apiKey' },
- ],
- },
- internxt: {
- id: 'internxt',
- name: 'Internxt Drive',
- fields: [
- { label: 'Email', value: 'email' },
- { label: 'Password', value: 'password' },
- ],
- },
- shade: {
- id: 'shade',
- name: 'Shade',
- fields: [
- { label: 'Drive ID', value: 'drive_id' },
- { label: 'API Key', value: 'api_key' },
- ],
- },
-};