From 8fc0df14bbdbd19c888da048d875c1d109083904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Gonz=C3=A1lez?= Date: Thu, 12 May 2016 00:59:15 -0500 Subject: [PATCH] Add "sslmode" setting for PostgreSQL connection The commit https://github.com/laravel/framework/commit/586bffa1d758e09114821b694b5e800cc9bbfb5f added support for sslmode in PostgresConnector.php and sslmode has been around since postgres version 9.1 (2011). This change makes it possible to specify sslmode from the config file. Also serves as documentation to other developers so they don't have to dive deep into the code to figure out that it's posible to set this option. The posible values for sslmode are: disable, allow, prefer, require, verify-ca, verify-full The default value is "prefer". http://www.postgresql.org/docs/9.5/static/libpq-ssl.html#LIBPQ-SSL-PROTECTION --- config/database.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/database.php b/config/database.php index 51656ab0..48652fa2 100644 --- a/config/database.php +++ b/config/database.php @@ -76,6 +76,7 @@ 'charset' => 'utf8', 'prefix' => '', 'schema' => 'public', + 'sslmode' => 'prefer', ], ],