mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 09:01:09 +03:00
changes based on suggestions
This commit is contained in:
@@ -12,10 +12,11 @@ class ElasticSearchUserPassword implements INodeCredential {
|
||||
this.name = 'elasticSearchUserPassword'
|
||||
this.version = 1.0
|
||||
this.description =
|
||||
'Refer to <a target="_blank" href="https://www.elastic.co/guide/en/kibana/current/tutorial-secure-access-to-kibana.html">official guide</a> on how to get User Password from ElasticSearch'
|
||||
`Use Cloud ID field to enter your Elastic Cloud ID or the URL of the Elastic server instance.
|
||||
Refer to <a target="_blank" href="https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-up-authentication.html">official guide</a> on how to get User Password from ElasticSearch.`
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Cloud ID or custom server URL',
|
||||
label: 'Cloud ID',
|
||||
name: 'cloudId',
|
||||
type: 'string'
|
||||
},
|
||||
|
||||
@@ -145,8 +145,6 @@ export abstract class ElasticSearchBase {
|
||||
let username = getCredentialParam('username', credentialData, nodeData)
|
||||
let password = getCredentialParam('password', credentialData, nodeData)
|
||||
if (cloudId.startsWith('http')) {
|
||||
let username = getCredentialParam('username', credentialData, nodeData)
|
||||
let password = getCredentialParam('password', credentialData, nodeData)
|
||||
elasticSearchClientOptions = {
|
||||
node: cloudId,
|
||||
auth: {
|
||||
@@ -157,7 +155,7 @@ export abstract class ElasticSearchBase {
|
||||
rejectUnauthorized: false
|
||||
}
|
||||
}
|
||||
} else{
|
||||
} else {
|
||||
elasticSearchClientOptions = {
|
||||
cloud: {
|
||||
id: cloudId
|
||||
@@ -167,7 +165,7 @@ export abstract class ElasticSearchBase {
|
||||
password: password
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return elasticSearchClientOptions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user