remove sslmode
parent
2087ba831c
commit
7a40b99ccf
|
@ -21,7 +21,7 @@ if (
|
|||
"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);
|
||||
|
||||
module.exports = db;
|
||||
|
|
Loading…
Reference in New Issue