change encryption key path

This commit is contained in:
Henry
2023-12-20 21:28:22 +00:00
parent c6a82156c1
commit 8c694e7987
2 changed files with 2 additions and 11 deletions
+1 -1
View File
@@ -859,7 +859,7 @@ export const isFlowValidForStream = (reactFlowNodes: IReactFlowNode[], endingNod
export const getEncryptionKeyPath = (): string => {
return process.env.SECRETKEY_PATH
? path.join(process.env.SECRETKEY_PATH, 'encryption.key')
: path.join(__dirname, '..', '..', 'encryption.key')
: path.join(getUserHome(), '.flowise', 'encryption.key')
}
/**