X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b61259bf7725b39947b8a841f40554d5a8b1e8c7..274f38105249c24d355b1f46749c3841ffff6ff0:/settings/settings.php diff --git a/settings/settings.php b/settings/settings.php index d90136bd..58463a51 100644 --- a/settings/settings.php +++ b/settings/settings.php @@ -5,6 +5,7 @@ // General settings @define('CONST_Debug', false); @define('CONST_Database_DSN', 'pgsql://@/nominatim'); + @define('CONST_Max_Word_Frequency', '50000'); // Paths @define('CONST_Postgresql_Version', '9.1'); @@ -13,6 +14,28 @@ @define('CONST_Osm2pgsql_Binary', CONST_BasePath.'/osm2pgsql/osm2pgsql'); @define('CONST_Osmosis_Binary', '/usr/bin/osmosis'); + // Connection buckets to rate limit people being nasty + @define('CONST_ConnectionBucket_MemcacheServerAddress', false); + @define('CONST_ConnectionBucket_MemcacheServerPort', 11211); + @define('CONST_ConnectionBucket_MaxBlockList', 100); + @define('CONST_ConnectionBucket_LeakRate', 1); + @define('CONST_ConnectionBucket_BlockLimit', 10); + @define('CONST_ConnectionBucket_WaitLimit', 6); + @define('CONST_ConnectionBucket_MaxSleeping', 10); + @define('CONST_ConnectionBucket_Cost_Reverse', 1); + @define('CONST_ConnectionBucket_Cost_Search', 2); + @define('CONST_ConnectionBucket_Cost_Details', 3); + + // Override this function to add an adjustment factor to the cost + // based on server load. e.g. getBlockingProcesses + if (!function_exists('user_busy_cost')) + { + function user_busy_cost() + { + return 0; + } + } + // Website settings @define('CONST_ClosedForIndexing', false); @define('CONST_ClosedForIndexingExceptionIPs', ''); @@ -32,6 +55,11 @@ @define('CONST_Suggestions_Enabled', false); + @define('CONST_Search_TryDroppedAddressTerms', false); + + // Set to zero to disable polygon output + @define('CONST_PolygonOutput_MaximumTypes', 1); + // Log settings @define('CONST_Log_DB', true); @define('CONST_Log_File', false);