Skip to content

Commit

Permalink
Merge pull request moodlehq#254 from stronk7/disable_encryption_sqlsrv
Browse files Browse the repository at this point in the history
Disable sqlsrv encryption by default
  • Loading branch information
stronk7 authored Mar 21, 2023
2 parents 4c4d1d5 + 0ab37f4 commit a6a9931
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config.docker-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
$CFG->prefix = 'm_';
$CFG->dboptions = ['dbcollation' => getenv('MOODLE_DOCKER_DBCOLLATION')];

if (getenv('MOODLE_DOCKER_DBTYPE') === 'sqlsrv') {
$CFG->dboptions['extrainfo'] = [
// Disable Encryption for now on sqlsrv.
// It is on by default from msodbcsql18.
'Encrypt' => false,
];
}

$host = 'localhost';
if (!empty(getenv('MOODLE_DOCKER_WEB_HOST'))) {
$host = getenv('MOODLE_DOCKER_WEB_HOST');
Expand Down

0 comments on commit a6a9931

Please sign in to comment.