mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 05:01:10 +03:00
mysql-ssl
This commit is contained in:
@@ -40,7 +40,19 @@ export const init = async (): Promise<void> => {
|
|||||||
synchronize: false,
|
synchronize: false,
|
||||||
migrationsRun: false,
|
migrationsRun: false,
|
||||||
entities: Object.values(entities),
|
entities: Object.values(entities),
|
||||||
migrations: mysqlMigrations
|
migrations: mysqlMigrations,
|
||||||
|
...(process.env.DATABASE_SSL_KEY_BASE64
|
||||||
|
? {
|
||||||
|
ssl: {
|
||||||
|
rejectUnauthorized: false,
|
||||||
|
ca: Buffer.from(process.env.DATABASE_SSL_KEY_BASE64, 'base64')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
: process.env.DATABASE_SSL === 'true'
|
||||||
|
? {
|
||||||
|
ssl: true
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
case 'postgres':
|
case 'postgres':
|
||||||
|
|||||||
Reference in New Issue
Block a user