2017-08-17 06:05:49 +08:00
|
|
|
<?php
|
|
|
|
|
2020-04-30 21:43:07 +08:00
|
|
|
$db_port = intval(getenv('db_port')) ?: 5432;
|
|
|
|
$db_host = getenv('db_host') ?: "127.0.0.1";
|
|
|
|
$db_name = getenv('db_name') ?: "oauth_db";
|
|
|
|
$db_type = getenv('db_type') ?: "pgsql";
|
|
|
|
$db_user = getenv('db_user') ?: "oauth";
|
|
|
|
$db_pass = getenv('db_pass') ?: "oauth_secure-pass";
|
|
|
|
$dsn = $db_type . ":dbname=" . $db_name . ";host=" . $db_host . ";port=" . $db_port;
|
2017-08-17 06:05:49 +08:00
|
|
|
|
|
|
|
/* Uncomment the line below to set date.timezone to avoid E.Notice raise by strtotime() (in Pdo.php)
|
|
|
|
* If date.timezone is not defined in php.ini or with this function, Mattermost could return a bad token request error
|
|
|
|
*/
|
2020-04-30 21:43:07 +08:00
|
|
|
//date_default_timezone_set ('Europe/Paris');
|