This repository has been archived by the owner on May 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.sample
executable file
·49 lines (39 loc) · 1.94 KB
/
config.php.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
// 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 of each feed
define('DEFAULT_TTL', 60);
// Number of minutes between runs of cron.php
// The BATCH_FREQUENCY will be combined with the DEFAULT_TTL to determine the maximum
// number of feeds to fetch. This maximum will help ensure that fetching gets distributed
// somewhat evenly.
define('BATCH_FREQUENCY', 10);
// Number of fetches before an error response is returned to the client
define('MAX_NUM_ERRORS', 10);
// Fetching timeouts so that the fetching process doesn't get stuck
define('FETCH_CONNECT_TIMEOUT', 60);
define('FETCH_TIMEOUT', 120);
// Threshold after which slow feed warnings will be printed to STDERR during cron runs.
define('SLOW_FEED_THRESHOLD', 45);
// 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('MAX_LIFE_WITHOUT_ACCESS', '30 DAY');
// Define a user agent for FetchProxy. It would be good to point it at a page describing
// your service
// define('USER_AGENT', 'FetchProxy http://fetchproxy.example.com/about.html');
// 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(
// '127.0.0.1',
);
// 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(
// '/^140.233.2.70, 140.233.2.6$/',
);