From 32736e2f7472f3fb7d178ae5e823e87bea426309 Mon Sep 17 00:00:00 2001 From: ntaylor-86 Date: Thu, 20 Mar 2025 23:06:15 +1000 Subject: [PATCH] added .env variable and database config to skip ssl for DB DUMP --- .env.docker | 1 + config/database.php | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.docker b/.env.docker index b6c1e52231..dbfa42baaa 100644 --- a/.env.docker +++ b/.env.docker @@ -35,6 +35,7 @@ DB_PASSWORD=changeme1234 MYSQL_ROOT_PASSWORD=changeme1234 DB_PREFIX=null DB_DUMP_PATH='/usr/bin' +DB_DUMP_SKIP_SSL=true DB_CHARSET=utf8mb4 DB_COLLATION=utf8mb4_unicode_ci diff --git a/config/database.php b/config/database.php index de3c40bb25..39b40c1ae6 100755 --- a/config/database.php +++ b/config/database.php @@ -81,6 +81,7 @@ return [ 'unix_socket' => env('DB_SOCKET', ''), 'dump' => [ 'dump_binary_path' => env('DB_DUMP_PATH', '/usr/local/bin'), // only the path, so without 'mysqldump' + 'skip_ssl' => env('DB_DUMP_SKIP_SSL', false), // turn off SSL if not available 'use_single_transaction' => false, 'timeout' => 60 * 5, // 5 minute timeout //'exclude_tables' => ['table1', 'table2'],