Skip to content

Commit

Permalink
add require ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanelnajjar committed Sep 1, 2023
1 parent 7b4cf6b commit f428984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
20 changes: 0 additions & 20 deletions web/database.json

This file was deleted.

5 changes: 4 additions & 1 deletion web/database/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ let __pool;
if (env !== 'production' || connectionString.includes('localhost')) {
__pool = new Pool({ connectionString });
} else {
__pool = new Pool({ connectionString, ssl: { rejectUnauthorized: false } });
__pool = new Pool({
connectionString,
ssl: { rejectUnauthorized: false, require: true }
});
}

const pool = __pool;
Expand Down

0 comments on commit f428984

Please sign in to comment.