Skip to content

Commit

Permalink
Adds ENV boolean flag (DATABASE_SSL) for postgres ssl support
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Jaredude authored Dec 25, 2023
1 parent e328252 commit 735edab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/server/src/DataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 735edab

Please sign in to comment.