You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	All: Enable ignoreTlsErrors and custom certificates for S3 sync (#8980)
This commit is contained in:
		| @@ -56,6 +56,7 @@ class SyncTargetAmazonS3 extends BaseSyncTarget { | ||||
| 			UseArnRegion: true, // override the request region with the region inferred from requested resource's ARN. | ||||
| 			forcePathStyle: Setting.value('sync.8.forcePathStyle'), // Older implementations may not support more modern access, so we expose this to allow people the option to toggle. | ||||
| 			endpoint: Setting.value('sync.8.url'), | ||||
| 			ignoreTlsErrors: Setting.value('net.ignoreTlsErrors'), | ||||
| 		}; | ||||
| 	} | ||||
|  | ||||
| @@ -87,6 +88,7 @@ class SyncTargetAmazonS3 extends BaseSyncTarget { | ||||
| 			UseArnRegion: true, // override the request region with the region inferred from requested resource's ARN. | ||||
| 			forcePathStyle: options.forcePathStyle(), | ||||
| 			endpoint: options.url(), | ||||
| 			ignoreTlsErrors: options.ignoreTlsErrors(), | ||||
| 		}; | ||||
|  | ||||
| 		const api = new S3Client(apiOptions); | ||||
|   | ||||
| @@ -1498,6 +1498,7 @@ class Setting extends BaseModel { | ||||
| 				advanced: true, | ||||
| 				show: (settings: any) => { | ||||
| 					return [ | ||||
| 						SyncTargetRegistry.nameToId('amazon_s3'), | ||||
| 						SyncTargetRegistry.nameToId('nextcloud'), | ||||
| 						SyncTargetRegistry.nameToId('webdav'), | ||||
| 						SyncTargetRegistry.nameToId('joplinServer'), | ||||
| @@ -1517,6 +1518,7 @@ class Setting extends BaseModel { | ||||
| 				show: (settings: any) => { | ||||
| 					return (shim.isNode() || shim.mobilePlatform() === 'android') && | ||||
| 						[ | ||||
| 							SyncTargetRegistry.nameToId('amazon_s3'), | ||||
| 							SyncTargetRegistry.nameToId('nextcloud'), | ||||
| 							SyncTargetRegistry.nameToId('webdav'), | ||||
| 							SyncTargetRegistry.nameToId('joplinServer'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user