]> git.openstreetmap.org Git - nominatim.git/blob - settings/settings.php
9f1d49087968175cf6ca30bad8826e48d7ecaa90
[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
20         @define('CONST_Default_Language', 'xx');
21         @define('CONST_Default_Lat', 20.0);
22         @define('CONST_Default_Lon', 0.0);
23         @define('CONST_Default_Zoom', 2);
24
25         @define('CONST_Search_AreaPolygons_Enabled', true);
26
27         @define('CONST_Suggestions_Enabled', false);
28
29         // Log settings
30         @define('CONST_Log_DB', true);
31         @define('CONST_Log_File', false);
32         @define('CONST_Log_File_Format', 'TODO'); // Currently hard coded