Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
executable file 33 lines (26 sloc) 1.23 KB
// Database connection details
define('DB_DSN', 'mysql:host=localhost;dbname=afranco_fetchproxy');
define('DB_USER', 'testuser');
define('DB_PASS', 'testpassword');
// Number of minutes between fetches
define('DEFAULT_TTL', 60);
// Number of fetches before an error response is returned to the client
define('MAX_NUM_ERRORS', 10);
// If the feed hasn't been accessed for this long, delete it and stop fetching.
// This value should be a valid MYSQL interval, e.g. '30 DAY'
// Define a list of allowed client IP addresses.
// There is no other security built into this system, so to prevent unauthorized
// clients from serving unsafe content from your domain, please define an array of
// allowed IP address that can use this service or a list of proxies.
$allowedClients = array(
// '',
// Define a chain of proxy servers/client that are allowed to access this service.
// Each definition is a regular expression. As defined in the X-Forwarded-For
// spec, the last entry in the list is the proxy closest to the server and the first
// entry is the original client. Be sure not to be too open-ended in what you allow.
$allowedProxyChains = array(
// '/^,$/',
Jump to Line
Something went wrong with that request. Please try again.