mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-23 05:00:23 +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 checkPaths = [
|
||||
path.join(__dirname, '..', '..', 'encryption.key'),
|
||||
path.join(__dirname, '..', '..', 'server', '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, '..', '..', '..', '..', '..', 'server', 'encryption.key')
|
||||
]
|
||||
for (const checkPath of checkPaths) {
|
||||
if (fs.existsSync(checkPath)) {
|
||||
|
||||
Reference in New Issue
Block a user