diff options
author | Simon Rettberg | 2018-12-07 10:06:29 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-12-07 10:06:29 +0100 |
commit | 2798b2caa66147952627135db0ff04f2e18256c8 (patch) | |
tree | fd460dcb0f82edf4fa6c3bd8f15a05b57326c73d /config.php.example | |
parent | Read org-id from eppn, affiliation is fallback (diff) | |
download | bwlp-webadmin-2798b2caa66147952627135db0ff04f2e18256c8.tar.gz bwlp-webadmin-2798b2caa66147952627135db0ff04f2e18256c8.tar.xz bwlp-webadmin-2798b2caa66147952627135db0ff04f2e18256c8.zip |
Update config example
Diffstat (limited to 'config.php.example')
-rw-r--r-- | config.php.example | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config.php.example b/config.php.example index f3a9cf2..ded60bf 100644 --- a/config.php.example +++ b/config.php.example @@ -3,6 +3,8 @@ // This might leak sensitive information. Never enable in production! define('CONFIG_DEBUG', true); define('CONFIG_PREFIX', '/webif/'); +define('CONFIG_SESSION_TIMEOUT', 86400 * 7); +define('CONFIG_FORCE_DOMAIN', 'my.server.address.example.com'); // Have a properties file or set variables here manually. // Make sure properties file is not in webroot @@ -12,7 +14,7 @@ foreach ($lines as $line) { if (preg_match('/^\s*(.+?)\s*=\s*(\S*)\s*$/', $line, $out)) $key[$out[1]] = $out[2]; } - +unset($lines, $line, $out); if (empty($key['host']) || empty($key['db']) || empty($key['user']) || empty($key['password'])) { die('Missing database config'); } @@ -21,4 +23,4 @@ define('CONFIG_SQL_DSN', "mysql:dbname={$key['db']};host={$key['host']}"); define('CONFIG_SQL_USER', $key['user']); define('CONFIG_SQL_PASS', $key['password']); define('CONFIG_SQL_FORCE_UTF8', true); - +unset($key); |