remove sslmode

securer-js-connection
eric 2023-04-17 18:04:34 -04:00
parent 2087ba831c
commit 7a40b99ccf
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ if (
"Some Postgres environment variables weren't found. Please configure them in the .env file." "Some Postgres environment variables weren't found. Please configure them in the .env file."
); );
const connection_string = `postgresql://${process.env.POSTGRES_USERNAME}@${process.env.POSTGRES_HOST}:${process.env.POSTGRES_PORT}/${process.env.POSTGRES_DB_NAME}?sslmode=${process.env.POSTGRES_SSLMODE}&password=${process.env.POSTGRES_PASSWORD}&ssl=true`; const connection_string = `postgresql://${process.env.POSTGRES_USERNAME}@${process.env.POSTGRES_HOST}:${process.env.POSTGRES_PORT}/${process.env.POSTGRES_DB_NAME}?password=${process.env.POSTGRES_PASSWORD}&ssl=true`;
const db = pgp(connection_string); const db = pgp(connection_string);
module.exports = db; module.exports = db;