Skip to content

Commit

Permalink
Ignore self-signed cert errors with rejectUnauthorized. Revisit by se…
Browse files Browse the repository at this point in the history
…eing if we can install the RDS certs on the container
  • Loading branch information
danielnaab committed Aug 19, 2024
1 parent c268582 commit 83bd027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/database/src/clients/knex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const getPostgresKnex = (
client: 'pg',
connection: {
connectionString,
ssl,
ssl: ssl ? { rejectUnauthorized: false } : false,
},
useNullAsDefault: true,
migrations: {
Expand Down
2 changes: 1 addition & 1 deletion packages/database/src/clients/kysely/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const createPostgresDatabase = (
dialect: new PostgresDialect({
pool: new pg.Pool({
connectionString,
ssl,
ssl: ssl ? { rejectUnauthorized: false } : false,
}),
}),
});
Expand Down

0 comments on commit 83bd027

Please sign in to comment.