Skip to content

Commit

Permalink
Fix postgres ssl no-verify
Browse files Browse the repository at this point in the history
  • Loading branch information
gytis-ivaskevicius committed Aug 10, 2022
1 parent 16551d6 commit e1a546b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cardano-services/src/Program/services/postgres.ts
Expand Up @@ -61,7 +61,10 @@ export const getPool = async (
): Promise<Pool | undefined> => {
const ssl = options?.postgresSslCaFile
? { ca: loadSecret(options.postgresSslCaFile) }
: process.env["POSTGRES_SSL"] === "true";
: process.env['POSTGRES_SSL'] === "true"
? { ssl: 'no-verify' }
: undefined;

if (options?.postgresConnectionString && options.postgresSrvServiceName)
throw new InvalidArgsCombination(
ProgramOptionDescriptions.PostgresConnectionString,
Expand Down

0 comments on commit e1a546b

Please sign in to comment.