2 if (file_exists(CONST_BasePath.'/settings/local.php')) require_once(CONST_BasePath.'/settings/local.php');
3 if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true);
6 @define('CONST_Debug', false);
7 @define('CONST_Database_DSN', 'pgsql://@/nominatim');
8 @define('CONST_Max_Word_Frequency', '50000');
11 @define('CONST_Postgresql_Version', '9.1');
12 @define('CONST_Path_Postgresql_Contrib', '/usr/share/postgresql/'.CONST_Postgresql_Version.'/contrib');
13 @define('CONST_Path_Postgresql_Postgis', CONST_Path_Postgresql_Contrib.'/postgis-1.5');
14 @define('CONST_Osm2pgsql_Binary', CONST_BasePath.'/osm2pgsql/osm2pgsql');
15 @define('CONST_Osmosis_Binary', '/usr/bin/osmosis');
17 // Connection buckets to rate limit people being nasty
18 @define('CONST_ConnectionBucket_MemcacheServerAddress', false);
19 @define('CONST_ConnectionBucket_MemcacheServerPort', 11211);
20 @define('CONST_ConnectionBucket_MaxBlockList', 100);
21 @define('CONST_ConnectionBucket_LeakRate', 1);
22 @define('CONST_ConnectionBucket_BlockLimit', 10);
23 @define('CONST_ConnectionBucket_WaitLimit', 6);
24 @define('CONST_ConnectionBucket_MaxSleeping', 10);
25 @define('CONST_ConnectionBucket_Cost_Reverse', 1);
26 @define('CONST_ConnectionBucket_Cost_Search', 2);
27 @define('CONST_ConnectionBucket_Cost_Details', 3);
29 // Override this function to add an adjustment factor to the cost
30 // based on server load. e.g. getBlockingProcesses
31 if (!function_exists('user_busy_cost'))
33 function user_busy_cost()
40 @define('CONST_BlockedIPs', '');
41 @define('CONST_IPBanFile', CONST_BasePath.'/settings/ip_blocks');
42 @define('CONST_WhitelistedIPs', '');
43 @define('CONST_BlockedUserAgents', '');
44 @define('CONST_BlockReverseMaxLoad', 15);
45 @define('CONST_BulkUserIPs', '');
47 @define('CONST_Website_BaseURL', 'http://nominatim.openstreetmap.org/');
48 @define('CONST_Tile_Default', 'Mapnik');
50 @define('CONST_Default_Language', 'xx');
51 @define('CONST_Default_Lat', 20.0);
52 @define('CONST_Default_Lon', 0.0);
53 @define('CONST_Default_Zoom', 2);
55 @define('CONST_Search_AreaPolygons_Enabled', true);
56 @define('CONST_Search_AreaPolygons', true);
58 @define('CONST_Suggestions_Enabled', false);
60 @define('CONST_Search_TryDroppedAddressTerms', false);
62 // Set to zero to disable polygon output
63 @define('CONST_PolygonOutput_MaximumTypes', 1);
66 @define('CONST_Log_DB', true);
67 @define('CONST_Log_File', false);
68 @define('CONST_Log_File_Format', 'TODO'); // Currently hard coded
69 @define('CONST_Log_File_SearchLog', '');
70 @define('CONST_Log_File_ReverseLog', '');