]> git.openstreetmap.org Git - nominatim.git/blob - settings/settings.php
configure tile set
[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
9         // Paths
10         @define('CONST_Path_Postgresql_Contrib', '/usr/share/postgresql/9.0/contrib');
11         @define('CONST_Path_Postgresql_Postgis', CONST_Path_Postgresql_Contrib.'/postgis-1.5');
12
13         // Website settings
14         @define('CONST_ClosedForIndexing', false);
15         @define('CONST_ClosedForIndexingExceptionIPs', '');
16         @define('CONST_BlockedIPs', '');
17
18         @define('CONST_Website_BaseURL', 'http://'.php_uname('n').'/');
19         @define('CONST_Tile_Default', 'Mapnik');
20
21         @define('CONST_Default_Language', 'xx');
22         @define('CONST_Default_Lat', 20.0);
23         @define('CONST_Default_Lon', 0.0);
24         @define('CONST_Default_Zoom', 2);
25
26         @define('CONST_Search_AreaPolygons_Enabled', true);
27
28         @define('CONST_Suggestions_Enabled', false);
29
30         // Log settings
31         @define('CONST_Log_DB', true);
32         @define('CONST_Log_File', false);
33         @define('CONST_Log_File_Format', 'TODO'); // Currently hard coded