Adds ENV boolean flag (DATABASE_SSL) for postgres ssl support

This is needed if hosting flowise data on a postgres server that requires ssl.
In PostgreSQL v15, the default rds.force_ssl is 1 (on)
This commit is contained in:
Jared Tracy 2023-12-24 23:02:49 -06:00 committed by GitHub
parent e328252662
commit 735edab9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ export const init = async (): Promise<void> => {
username: process.env.DATABASE_USER,
password: process.env.DATABASE_PASSWORD,
database: process.env.DATABASE_NAME,
ssl: process.env.DATABASE_SSL === 'true',
synchronize: false,
migrationsRun: false,
entities: Object.values(entities),