From 0a511cfbdcb461cf1e897b9b640ed96a9ed7df02 Mon Sep 17 00:00:00 2001 From: Carter Mayeux <159168644+cmayeux05@users.noreply.github.com> Date: Sun, 20 Oct 2024 13:49:26 -0500 Subject: [PATCH] security --- server/config/database.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/config/database.js b/server/config/database.js index 4f189daa..0322c259 100644 --- a/server/config/database.js +++ b/server/config/database.js @@ -29,9 +29,7 @@ module.exports = ({ env }) => ({ username: env('DATABASE_USERNAME', 'postgres'), password: env('DATABASE_PASSWORD', 'postgres'), schema: 'public', - ssl: env('NODE_ENV') == 'production' - ? { rejectUnauthorized: false } - : false + ssl: { rejectUnauthorized: false } }, options: { 'pool': {