A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.
fix: resolve cloudflare R2 EU bucket storage connection issue
towfiqi2d44a1080b3e
diff --git a/backend/src/utils/providers.ts b/backend/src/utils/providers.tsindex 02a4ffe..7cd8e33 100644--- a/backend/src/utils/providers.ts+++ b/backend/src/utils/providers.ts@@ -871,7 +871,7 @@ export const providers: Record<string, ProviderConfig> = {'secret_access_key',creds.secret_access_key,'endpoint',- `https://${creds.endpoint}.r2.cloudflarestorage.com`,+ `https://${creds.endpoint}.${creds.jurisdiction ? creds.jurisdiction + '.' : ''}r2.cloudflarestorage.com`,'region','auto','no_check_bucket',diff --git a/backend/src/utils/providers/r2.ts b/backend/src/utils/providers/r2.tsindex 4965340..7da98f8 100644--- a/backend/src/utils/providers/r2.ts+++ b/backend/src/utils/providers/r2.ts@@ -31,6 +31,22 @@ const r2Settings = [description: 'Your R2 Account ID, which will be used to generate the Endpoint.',command: '--s3-endpoint',},+ {+ label: 'Jurisdiction',+ value: 'jurisdiction',+ fieldType: 'select',+ authFieldType: 'client',+ options: [+ { label: 'Global', value: '' },+ { label: 'European Union (EU)', value: 'eu' },+ { label: 'FedRAMP', value: 'fedramp' },+ ],+ required: true,+ default: '',+ description:+ 'Your R2 Jurisdiction. Will be used to generate the Endpoint. Buckets created with jurisdictions must be accessed via jurisdiction-specific endpoints.',+ command: '',+ },{label: 'Bucket Name',value: 'bucket',