2019-03-20 04:58:37 +08:00
|
|
|
<?php
|
|
|
|
|
2019-05-02 20:51:50 +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 = $type . ":dbname=" . $name . ";host=" . $host . ";port=" . $port;
|
2019-03-20 04:58:37 +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
|
|
|
|
*/
|
|
|
|
date_default_timezone_set ('Europe/Paris');
|