mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
feat(Gotify Node): Add support for self signed certificates (#6053)
This commit is contained in:
parent
000cacf736
commit
401cffde57
|
@ -12,6 +12,9 @@ export class GotifyApi implements ICredentialType {
|
||||||
displayName: 'App API Token',
|
displayName: 'App API Token',
|
||||||
name: 'appApiToken',
|
name: 'appApiToken',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
typeOptions: {
|
||||||
|
password: true,
|
||||||
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: '(Optional) Needed for message creation',
|
description: '(Optional) Needed for message creation',
|
||||||
},
|
},
|
||||||
|
@ -19,6 +22,9 @@ export class GotifyApi implements ICredentialType {
|
||||||
displayName: 'Client API Token',
|
displayName: 'Client API Token',
|
||||||
name: 'clientApiToken',
|
name: 'clientApiToken',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
typeOptions: {
|
||||||
|
password: true,
|
||||||
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: '(Optional) Needed for everything (delete, getAll) but message creation',
|
description: '(Optional) Needed for everything (delete, getAll) but message creation',
|
||||||
},
|
},
|
||||||
|
@ -29,5 +35,12 @@ export class GotifyApi implements ICredentialType {
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The URL of the Gotify host',
|
description: 'The URL of the Gotify host',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Ignore SSL Issues',
|
||||||
|
name: 'ignoreSSLIssues',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
description: 'Whether to connect even if SSL certificate validation is not possible',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ export async function gotifyApiRequest(
|
||||||
qs,
|
qs,
|
||||||
uri: uri || `${credentials.url}${path}`,
|
uri: uri || `${credentials.url}${path}`,
|
||||||
json: true,
|
json: true,
|
||||||
|
rejectUnauthorized: credentials.ignoreSSLIssues as boolean,
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
if (Object.keys(body as IDataObject).length === 0) {
|
if (Object.keys(body as IDataObject).length === 0) {
|
||||||
|
|
Loading…
Reference in a new issue