mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
Added ssl flag
This commit is contained in:
@@ -60,6 +60,13 @@ class Postgres_VectorStores implements INode {
|
|||||||
name: 'database',
|
name: 'database',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'SSL Connection',
|
||||||
|
name: 'sslConnection',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
optional: false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Port',
|
label: 'Port',
|
||||||
name: 'port',
|
name: 'port',
|
||||||
@@ -117,6 +124,7 @@ class Postgres_VectorStores implements INode {
|
|||||||
const docs = nodeData.inputs?.document as Document[]
|
const docs = nodeData.inputs?.document as Document[]
|
||||||
const embeddings = nodeData.inputs?.embeddings as Embeddings
|
const embeddings = nodeData.inputs?.embeddings as Embeddings
|
||||||
const additionalConfig = nodeData.inputs?.additionalConfig as string
|
const additionalConfig = nodeData.inputs?.additionalConfig as string
|
||||||
|
const sslConnection = nodeData.inputs?.sslConnection as boolean
|
||||||
|
|
||||||
let additionalConfiguration = {}
|
let additionalConfiguration = {}
|
||||||
if (additionalConfig) {
|
if (additionalConfig) {
|
||||||
@@ -134,7 +142,8 @@ class Postgres_VectorStores implements INode {
|
|||||||
port: nodeData.inputs?.port as number,
|
port: nodeData.inputs?.port as number,
|
||||||
username: user,
|
username: user,
|
||||||
password: password,
|
password: password,
|
||||||
database: nodeData.inputs?.database as string
|
database: nodeData.inputs?.database as string,
|
||||||
|
ssl: sslConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
const args = {
|
const args = {
|
||||||
|
|||||||
Reference in New Issue
Block a user