mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 07:01:04 +03:00
Fix wrong elasti client setup when use custom URL
This commit is contained in:
@@ -183,6 +183,18 @@ const prepareConnectionOptions = (
|
|||||||
} else if (cloudId) {
|
} else if (cloudId) {
|
||||||
let username = getCredentialParam('username', credentialData, nodeData)
|
let username = getCredentialParam('username', credentialData, nodeData)
|
||||||
let password = getCredentialParam('password', credentialData, nodeData)
|
let password = getCredentialParam('password', credentialData, nodeData)
|
||||||
|
if (cloudId.startsWith('http')) {
|
||||||
|
elasticSearchClientOptions = {
|
||||||
|
node: cloudId,
|
||||||
|
auth: {
|
||||||
|
username: username,
|
||||||
|
password: password
|
||||||
|
},
|
||||||
|
tls: {
|
||||||
|
rejectUnauthorized: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
elasticSearchClientOptions = {
|
elasticSearchClientOptions = {
|
||||||
cloud: {
|
cloud: {
|
||||||
id: cloudId
|
id: cloudId
|
||||||
@@ -193,6 +205,7 @@ const prepareConnectionOptions = (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return elasticSearchClientOptions
|
return elasticSearchClientOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user