Skip to content

Commit

Permalink
Load DB_SSL as boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickEvers committed Mar 6, 2024
1 parent 4bb4d00 commit 26c4804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports.DB_DATABASE = process.env.DB_DATABASE;
exports.DB_USERNAME = process.env.DB_USERNAME;
exports.DB_PASSWORD = process.env.DB_PASSWORD;
exports.DB_PORT = process.env.DB_PORT || 5432;
exports.DB_SSL = process.env.DB_SSL || false;
exports.DB_SSL = process.env.DB_SSL.toLowerCase?.() === 'true';
exports.CONNECTION_POOL_SIZE = process.env.CONNECTION_POOL_SIZE || 10;
exports.DB_IDLE_TIMEOUT_MILLIS = process.env.DB_IDLE_TIMEOUT_MILLIS;
exports.DB_MAX_USES = process.env.DB_MAX_USES;
Expand Down

0 comments on commit 26c4804

Please sign in to comment.