diff --git a/src/cli/templates/init/botfile.js b/src/cli/templates/init/botfile.js
index <HASH>..<HASH> 100644
--- a/src/cli/templates/init/botfile.js
+++ b/src/cli/templates/init/botfile.js
@@ -39,6 +39,7 @@ module.exports = {
     port: process.env.PG_PORT || 5432,
     user: process.env.PG_USER || '',
     password: process.env.PG_PASSWORD || '',
-    database: process.env.PG_DB || ''
+    database: process.env.PG_DB || '',
+    ssl: process.env.PG_SSL || false
   }
 }
diff --git a/src/database.js b/src/database.js
index <HASH>..<HASH> 100644
--- a/src/database.js
+++ b/src/database.js
@@ -42,7 +42,8 @@ module.exports = ({ sqlite, postgres }) => {
           port: postgres.port,
           user: postgres.user,
           password: postgres.password,
-          database: postgres.database
+          database: postgres.database,
+          ssl: postgres.ssl
         },
         useNullAsDefault: true
       })
Added support for Postgres SSL connections.