Skip to content

Commit a6a9931

Browse files
authored
Merge pull request #254 from stronk7/disable_encryption_sqlsrv
Disable sqlsrv encryption by default
2 parents 4c4d1d5 + 0ab37f4 commit a6a9931

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config.docker-template.php

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
$CFG->prefix = 'm_';
1414
$CFG->dboptions = ['dbcollation' => getenv('MOODLE_DOCKER_DBCOLLATION')];
1515

16+
if (getenv('MOODLE_DOCKER_DBTYPE') === 'sqlsrv') {
17+
$CFG->dboptions['extrainfo'] = [
18+
// Disable Encryption for now on sqlsrv.
19+
// It is on by default from msodbcsql18.
20+
'Encrypt' => false,
21+
];
22+
}
23+
1624
$host = 'localhost';
1725
if (!empty(getenv('MOODLE_DOCKER_WEB_HOST'))) {
1826
$host = getenv('MOODLE_DOCKER_WEB_HOST');

0 commit comments

Comments
 (0)