Skip to content

Commit 2fc7901

Browse files
author
joeltaylor
committed
Make ssl default apply only to production
1 parent 1a27fbb commit 2fc7901

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/services/db.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ if (settings == undefined) {
55
settings = "pg://localhost:5432/javascriptcom";
66
}
77

8-
pg.defaults.ssl = true;
8+
if (process.env.NODE_ENV === 'production') {
9+
pg.defaults.ssl = true;
10+
}
911

1012
/* A parameterized query. An empty args array may be passed if there are no paramaters.
1113
* Results are passed to a callback.

0 commit comments

Comments
 (0)