about summary refs log tree commit diff
path: root/streaming
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-08 20:43:51 +0100
committerGitHub <noreply@github.com>2019-03-08 20:43:51 +0100
commit42cc93e8923a1b6cdb61574e9a86e360cba56abb (patch)
treeb01c0a68ef1518b27c51aa382bc89a5ade3b93f8 /streaming
parent93daa97fc33b663aacaf6656af25d25e0ba4499b (diff)
parent674fe32f972614c1617e61bf946e58006d18d019 (diff)
Merge pull request #947 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'streaming')
-rw-r--r--streaming/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/streaming/index.js b/streaming/index.js
index 406ee09e1..2e3439886 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -89,6 +89,9 @@ const startWorker = (workerId) => {
       host:     process.env.DB_HOST || pg.defaults.host,
       port:     process.env.DB_PORT || pg.defaults.port,
       max:      10,
+      ssl: {
+        sslmode: process.env.DB_SSLMODE || 'prefer',
+      },
     },
 
     production: {
@@ -98,6 +101,9 @@ const startWorker = (workerId) => {
       host:     process.env.DB_HOST || 'localhost',
       port:     process.env.DB_PORT || 5432,
       max:      10,
+      ssl: {
+        sslmode: process.env.DB_SSLMODE || 'prefer',
+      },
     },
   };