mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 20:22:53 +00:00
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:
parent
e3bee5aae7
commit
04491ac5ac
@ -51,6 +51,13 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
|
|||||||
gzip: true
|
gzip: true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (selfSignedCert) {
|
||||||
|
var agentOptions = {
|
||||||
|
rejectUnauthorized: false
|
||||||
|
};
|
||||||
|
opts.agentOptions = agentOptions;
|
||||||
|
}
|
||||||
|
|
||||||
if (auth) {
|
if (auth) {
|
||||||
if (auth.method === "bearer") {
|
if (auth.method === "bearer") {
|
||||||
opts.auth = {
|
opts.auth = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user