不要怂,就是干,撸起袖子干!

Commit f81bd3b0 by Joey G

This adds ssl to the query string to connect using ssl with pg. The value was n…

…ot being pushed all the way through to the uri
1 parent a64fe80d
Showing with 3 additions and 2 deletions
......@@ -588,7 +588,7 @@ module.exports = (function() {
},
databaseConnectionUri: function(config) {
var template = '<%= protocol %>://<%= user %>:<%= password %>@<%= host %><% if(port) { %>:<%= port %><% } %>/<%= database %>';
var template = '<%= protocol %>://<%= user %>:<%= password %>@<%= host %><% if(port) { %>:<%= port %><% } %>/<%= database %><% if(ssl) { %>?ssl=<%= ssl %><% } %>'
return Utils._.template(template)({
user: config.username,
......@@ -596,7 +596,8 @@ module.exports = (function() {
database: config.database,
host: config.host,
port: config.port,
protocol: config.protocol
protocol: config.protocol,
ssl: config.ssl
});
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!