mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
add check file paths
This commit is contained in:
@@ -356,9 +356,13 @@ export const getEnvironmentVariable = (name: string): string | undefined => {
|
|||||||
const getEncryptionKeyFilePath = (): string => {
|
const getEncryptionKeyFilePath = (): string => {
|
||||||
const checkPaths = [
|
const checkPaths = [
|
||||||
path.join(__dirname, '..', '..', 'encryption.key'),
|
path.join(__dirname, '..', '..', 'encryption.key'),
|
||||||
|
path.join(__dirname, '..', '..', 'server', 'encryption.key'),
|
||||||
path.join(__dirname, '..', '..', '..', 'encryption.key'),
|
path.join(__dirname, '..', '..', '..', 'encryption.key'),
|
||||||
|
path.join(__dirname, '..', '..', '..', 'server', 'encryption.key'),
|
||||||
path.join(__dirname, '..', '..', '..', '..', 'encryption.key'),
|
path.join(__dirname, '..', '..', '..', '..', 'encryption.key'),
|
||||||
path.join(__dirname, '..', '..', '..', '..', '..', 'encryption.key')
|
path.join(__dirname, '..', '..', '..', '..', 'server', 'encryption.key'),
|
||||||
|
path.join(__dirname, '..', '..', '..', '..', '..', 'encryption.key'),
|
||||||
|
path.join(__dirname, '..', '..', '..', '..', '..', 'server', 'encryption.key')
|
||||||
]
|
]
|
||||||
for (const checkPath of checkPaths) {
|
for (const checkPath of checkPaths) {
|
||||||
if (fs.existsSync(checkPath)) {
|
if (fs.existsSync(checkPath)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user