Fork of github.com/did-method-plc/did-method-plc
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Increase flexibility of paramaters accepted by DB_CREDS_JSON env var

authored by

Miles Zimmerman and committed by
bnewbold
8b2b0f31 c73c568b

+2 -2
+2 -2
packages/server/service/index.js
··· 30 30 }) 31 31 } 32 32 33 - const pgUrl = ({ username, password, host, port }) => { 33 + const pgUrl = ({ username = "postgres", password = "postgres", host = "0.0.0.0", port = "5432", database = "postgres", sslmode }) => { 34 34 const enc = encodeURIComponent 35 - return `postgresql://${username}:${enc(password)}@${host}:${port}/postgres` 35 + return `postgresql://${username}:${enc(password)}@${host}:${port}/${database}${sslmode ? `?sslmode=${enc(sslmode)}` : ''}` 36 36 } 37 37 38 38 main()