X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/96d3cb61c80d5fd0219497f74f908ca867ba5dce..f2b2a714855f1441319fa6d4fe095d3779c583d6:/settings/settings.php diff --git a/settings/settings.php b/settings/settings.php index afa20d20..10f77ee4 100644 --- a/settings/settings.php +++ b/settings/settings.php @@ -4,7 +4,7 @@ // General settings @define('CONST_Debug', false); - @define('CONST_Database_DSN', 'pgsql://@/nominatim'); + @define('CONST_Database_DSN', 'pgsql://@/nominatim'); // ://:@:/ @define('CONST_Max_Word_Frequency', '50000'); // Software versions @@ -13,9 +13,11 @@ // Paths @define('CONST_Path_Postgresql_Contrib', '/usr/share/postgresql/'.CONST_Postgresql_Version.'/contrib'); - @define('CONST_Path_Postgresql_Postgis', CONST_Path_Postgresql_Contrib.'/postgis-1.5'); + @define('CONST_Path_Postgresql_Postgis', CONST_Path_Postgresql_Contrib.'/postgis-'.CONST_Postgis_Version); @define('CONST_Osm2pgsql_Binary', CONST_BasePath.'/osm2pgsql/osm2pgsql'); @define('CONST_Osmosis_Binary', '/usr/bin/osmosis'); + @define('CONST_Replication_Url', 'http://planet.openstreetmap.org/replication/minute'); + @define('CONST_Replication_MaxInterval', '3600'); // Connection buckets to rate limit people being nasty @define('CONST_ConnectionBucket_MemcacheServerAddress', false); @@ -28,6 +30,7 @@ @define('CONST_ConnectionBucket_Cost_Reverse', 1); @define('CONST_ConnectionBucket_Cost_Search', 2); @define('CONST_ConnectionBucket_Cost_Details', 3); + @define('CONST_ConnectionBucket_Cost_Status', 1); // Override this function to add an adjustment factor to the cost // based on server load. e.g. getBlockingProcesses @@ -60,6 +63,7 @@ @define('CONST_Suggestions_Enabled', false); @define('CONST_Search_TryDroppedAddressTerms', false); + @define('CONST_Search_NameOnlySearchFrequencyThreshold', false); // Set to zero to disable polygon output @define('CONST_PolygonOutput_MaximumTypes', 1);