diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index e3d3c77..a716b66 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -193,6 +193,35 @@ * ); * @endcode * + * Advanced users can also specify MySQL database layer connection security using the + * 'pdo' attribute for array as follows: + * @code + * 'pdo' => [ + * MYSQL_ATTR_SSL_KEY => '/path/to/ssl-cert.key', + * MYSQL_ATTR_SSL_CERT => '/path/to/ssl-cert.crt', + * MYSQL_ATTR_SSL_CA => '/path/to/ca-cert.crt', + * // Optional + * MYSQL_ATTR_SSL_CAPATH => '/ca/path', + * MYSQL_ATTR_SSL_CIPHER => 'ssl cipher', + * ], + * @endcode + * + * For PostgreSQL SSL connection use the following settings: + * @code + * $databases['default']['default'] = array( + * 'init_commands' => array( + * 'sslmode' => 'require', + * ), + * ); + * @endcode + * + * For SQLite database ssl connection settings are not required as it is + * only supported on localhost. + * + * Any features supported by the PDO driver of the database can be put into + * the 'pdo' attribute array, as defined in the php documentation. + * @url http://php.net/manual/en/pdo.drivers.php + * * WARNING: The above defaults are designed for database portability. Changing * them may cause unexpected behavior, including potential data loss. See * https://www.drupal.org/developing/api/database/configuration for more