Skip to content

Commit

Permalink
Merge pull request #284 from 1ma/pdo-env-vars
Browse files Browse the repository at this point in the history
env vars for save.handler and pdo
  • Loading branch information
markstory committed May 18, 2020
2 parents c3de4cf + 25bdb26 commit 812c596
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/config.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
// # to reduce locking problems (eg uniqid, time ...)
// 'save.handler.filename' => __DIR__.'/../data/xhgui_'.date('Ymd').'.dat',
//
'save.handler' => 'mongodb',
'save.handler' => getenv('XHGUI_SAVE_HANDLER') ?: 'mongodb',

'pdo' => array(
'dsn' => null,
'user' => null,
'pass' => null,
'table' => 'results'
'dsn' => getenv('XHGUI_PDO_DSN') ?: null,
'user' => getenv('XHGUI_PDO_USER') ?: null,
'pass' => getenv('XHGUI_PDO_PASS') ?: null,
'table' => getenv('XHGUI_PDO_TABLE') ?: 'results'
),

// Database options for MongoDB.
Expand Down

0 comments on commit 812c596

Please sign in to comment.