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'); // values: 8.3, 8.4, 9.0, 9.1, 9.2
12 @define('CONST_Postgis_Version', '1.5'); // values: 1.5, 2.0
15 @define('CONST_Path_Postgresql_Contrib', '/usr/share/postgresql/'.CONST_Postgresql_Version.'/contrib');
16 @define('CONST_Path_Postgresql_Postgis', CONST_Path_Postgresql_Contrib.'/postgis-1.5');
17 @define('CONST_Osm2pgsql_Binary', CONST_BasePath.'/osm2pgsql/osm2pgsql');
18 @define('CONST_Osmosis_Binary', '/usr/bin/osmosis');
20 // Connection buckets to rate limit people being nasty
21 @define('CONST_ConnectionBucket_MemcacheServerAddress', false);
22 @define('CONST_ConnectionBucket_MemcacheServerPort', 11211);
23 @define('CONST_ConnectionBucket_MaxBlockList', 100);
24 @define('CONST_ConnectionBucket_LeakRate', 1);
25 @define('CONST_ConnectionBucket_BlockLimit', 10);
26 @define('CONST_ConnectionBucket_WaitLimit', 6);
27 @define('CONST_ConnectionBucket_MaxSleeping', 10);
28 @define('CONST_ConnectionBucket_Cost_Reverse', 1);
29 @define('CONST_ConnectionBucket_Cost_Search', 2);
30 @define('CONST_ConnectionBucket_Cost_Details', 3);
32 // Override this function to add an adjustment factor to the cost
33 // based on server load. e.g. getBlockingProcesses
34 if (!function_exists('user_busy_cost'))
36 function user_busy_cost()
43 @define('CONST_NoAccessControl', true);
44 @define('CONST_BlockedIPs', '');
45 @define('CONST_IPBanFile', CONST_BasePath.'/settings/ip_blocks');
46 @define('CONST_WhitelistedIPs', '');
47 @define('CONST_BlockedUserAgents', '');
48 @define('CONST_BlockReverseMaxLoad', 15);
49 @define('CONST_BulkUserIPs', '');
51 @define('CONST_Website_BaseURL', 'http://nominatim.openstreetmap.org/');
52 @define('CONST_Tile_Default', 'Mapnik');
54 @define('CONST_Default_Language', 'xx');
55 @define('CONST_Default_Lat', 20.0);
56 @define('CONST_Default_Lon', 0.0);
57 @define('CONST_Default_Zoom', 2);
59 @define('CONST_Search_AreaPolygons_Enabled', true);
60 @define('CONST_Search_AreaPolygons', true);
62 @define('CONST_Suggestions_Enabled', false);
64 @define('CONST_Search_TryDroppedAddressTerms', false);
65 @define('CONST_Search_NameOnlySearchFrequencyThreshold', false);
67 // Set to zero to disable polygon output
68 @define('CONST_PolygonOutput_MaximumTypes', 1);
71 @define('CONST_Log_DB', true);
72 @define('CONST_Log_File', false);
73 @define('CONST_Log_File_Format', 'TODO'); // Currently hard coded
74 @define('CONST_Log_File_SearchLog', '');
75 @define('CONST_Log_File_ReverseLog', '');