Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

fix(backend:files): honor SSL certificate verification settings for OnlyOffice and EuroOffice

johaven26aa6e72a963
diff --git a/backend/src/applications/files/editors/only-office/only-office-manager.service.ts b/backend/src/applications/files/editors/only-office/only-office-manager.service.ts
index 5928cee0..072408e5 100644
--- a/backend/src/applications/files/editors/only-office/only-office-manager.service.ts
+++ b/backend/src/applications/files/editors/only-office/only-office-manager.service.ts
@@ -60,7 +60,7 @@ export class OnlyOfficeManager {
: configuration.applications.files.editors.eurooffice
private readonly officeAppLock = configuration.applications.files.editors.onlyoffice.enabled ? ONLY_OFFICE_APP_LOCK : EURO_OFFICE_APP_LOCK
private readonly externalOnlyOfficeServer = this.officeConfig.externalServer || null
- private readonly rejectUnauthorized: boolean = !this.officeConfig.verifySSL
+ private readonly rejectUnauthorized: boolean = this.officeConfig.verifySSL
private readonly convertUrl = this.externalOnlyOfficeServer ? `${this.externalOnlyOfficeServer}/ConvertService.ashx` : null
private readonly expiration = convertHumanTimeToSeconds(configuration.auth.token.refresh.expiration)
private readonly mobileRegex: RegExp = /android|webos|iphone|ipad|ipod|blackberry|windows phone|opera mini|iemobile|mobile/i