This is supposed to make self signed certs work with the calendar module

Many people use Own-/Nextcloud together witht he https protocol. This is supposed to make self-signed certificates work with the calendar module and fix the issue #466.
This commit is contained in:
Krouty 2021-02-13 17:13:00 +01:00 committed by GitHub
parent e3bee5aae7
commit 04491ac5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,13 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
},
gzip: true
};
if (selfSignedCert) {
var agentOptions = {
rejectUnauthorized: false
};
opts.agentOptions = agentOptions;
}
if (auth) {
if (auth.method === "bearer") {