<?php

ini_set('session.save_handler', 'memcached');
ini_set('session.save_path', getenv('MEMCACHED_HOST') . ':11211');

$config[ 'core' ][ 'db' ][ 'host' ] = getenv('DB_HOST');
$config[ 'core' ][ 'db' ][ 'name' ] = getenv('DB_NAME');
$config[ 'core' ][ 'db' ][ 'user' ] = getenv('DB_USER');
$config[ 'core' ][ 'db' ][ 'password' ] = file_get_contents(getenv('DB_PASSWORD_FILE'));

$config[ 'core' ][ 'pages' ][ 'baseURL' ] = getenv('BASE_URL') ?: null;
$config[ 'core' ][ 'pages' ][ 'baseTitle' ] = 'Tasks';

/* Minimal time before a completed task can be deleted. The default is one week. */
// $config[ 't-data' ][ 'minDeletionTime' ] = 7 * 3600 * 24;