mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 15:01:11 +03:00
changes based on suggestions
This commit is contained in:
@@ -12,10 +12,11 @@ class ElasticSearchUserPassword implements INodeCredential {
|
|||||||
this.name = 'elasticSearchUserPassword'
|
this.name = 'elasticSearchUserPassword'
|
||||||
this.version = 1.0
|
this.version = 1.0
|
||||||
this.description =
|
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 = [
|
this.inputs = [
|
||||||
{
|
{
|
||||||
label: 'Cloud ID or custom server URL',
|
label: 'Cloud ID',
|
||||||
name: 'cloudId',
|
name: 'cloudId',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -145,8 +145,6 @@ export abstract class ElasticSearchBase {
|
|||||||
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')) {
|
if (cloudId.startsWith('http')) {
|
||||||
let username = getCredentialParam('username', credentialData, nodeData)
|
|
||||||
let password = getCredentialParam('password', credentialData, nodeData)
|
|
||||||
elasticSearchClientOptions = {
|
elasticSearchClientOptions = {
|
||||||
node: cloudId,
|
node: cloudId,
|
||||||
auth: {
|
auth: {
|
||||||
@@ -157,7 +155,7 @@ export abstract class ElasticSearchBase {
|
|||||||
rejectUnauthorized: false
|
rejectUnauthorized: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else{
|
} else {
|
||||||
elasticSearchClientOptions = {
|
elasticSearchClientOptions = {
|
||||||
cloud: {
|
cloud: {
|
||||||
id: cloudId
|
id: cloudId
|
||||||
|
|||||||
Reference in New Issue
Block a user