Skip to content

Commit

Permalink
Merge pull request #1104 from permaweb/twilson63/fix-allow-encrypted-…
Browse files Browse the repository at this point in the history
…db-access

fix(cu): pg ru should connect via ssl
  • Loading branch information
twilson63 authored Jan 9, 2025
2 parents 0f5b3de + fab4b9b commit 284a0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/cu/src/effects/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const COLLATION_SEQUENCE_MIN_CHAR = '0'

export async function createDbClient ({ url, ...rest }) {
if (url.startsWith('postgres://')) {
return PostgresClient.createPostgresClient({ url, ...rest })
return PostgresClient.createPostgresClient({ url, ssl: { rejectUnauthorized: false }, ...rest })
}

return SqliteClient.createSqliteClient({ url: `${url}.sqlite`, ...rest })
Expand Down

0 comments on commit 284a0df

Please sign in to comment.