'file_cache/', 'lifeTime' => 86400 ); // define regex patterns that shoud NOT be accepted $file_cache_exclude = array(); // if set, cached file must match at least one of these regex patterns $file_cache_include = array( //'#.+[.](png|jpe?g|gif)#i' // only media files ); /**************************************************************** ** REST API OPTIONS ** ****************************************************************/ // whitelisting is done per IP address ($_SERVER['REMOTE_ADDR']) with a 'all' for the generic stuff that applies to all IP addresses // - if a request comes in and the IP is not a key in the array, the whitelisted in 'all' are used // - if a request comes in and the IP is indeed a key in the array, the whitelisted in the IP are checked first. If nothing is // found ,the 'all' ones are checked next. $rest_allowed_actions = array( 'all' => array( 'Contact' => array( 'getsingle' => array( 'email' => 'string', ), ), ), '123.45.678.1' => array( 'Contact' => array( 'getsingle' => array( 'first_name' => 'string', 'last_name' => 'string', // the following means *all* remaining parameters will be // added and sanitised as 'string'. Better leave it out // if you know which parameters you expect '*' => 'string', ), ), ), ); $callbacks_enabled = false; $callbacks = [ 'sparkpost' => [ // 'secret' => '', 'request_method' => 'POST', 'target_path' => 'civicrm/sparkpost/callback' ] ];