]> git.openstreetmap.org Git - nominatim.git/blob - settings/settings.php
Merge remote-tracking branch 'lonvia/partial-search-terms'
[nominatim.git] / settings / settings.php
1 <?php
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);
4
5         // General settings
6         @define('CONST_Debug', false);
7         @define('CONST_Database_DSN', 'pgsql://@/nominatim');
8         @define('CONST_Max_Word_Frequency', '50000');
9
10         // Paths
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');
16
17         // Website settings
18         @define('CONST_ClosedForIndexing', false);
19         @define('CONST_ClosedForIndexingExceptionIPs', '');
20         @define('CONST_BlockedIPs', '');
21         @define('CONST_BulkUserIPs', '');
22
23         @define('CONST_Website_BaseURL', 'http://'.php_uname('n').'/');
24         @define('CONST_Tile_Default', 'Mapnik');
25
26         @define('CONST_Default_Language', 'xx');
27         @define('CONST_Default_Lat', 20.0);
28         @define('CONST_Default_Lon', 0.0);
29         @define('CONST_Default_Zoom', 2);
30
31         @define('CONST_Search_AreaPolygons_Enabled', true);
32         @define('CONST_Search_AreaPolygons', true);
33
34         @define('CONST_Suggestions_Enabled', false);
35
36         // Log settings
37         @define('CONST_Log_DB', true);
38         @define('CONST_Log_File', false);
39         @define('CONST_Log_File_Format', 'TODO'); // Currently hard coded
40         @define('CONST_Log_File_SearchLog', '');
41         @define('CONST_Log_File_ReverseLog', '');