]> git.openstreetmap.org Git - chef.git/blob - cookbooks/nominatim/templates/default/settings.erb
reworke nominatim cookbook for cmake version of nominatim
[chef.git] / cookbooks / nominatim / templates / default / settings.erb
1 <?php
2 # DO NOT EDIT - This file is being maintained by Chef
3
4 @define('CONST_Database_DSN', 'pgsql://@/<%= @dbname %>');
5 if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']))
6     @define('CONST_Website_BaseURL', 'https://nominatim.openstreetmap.org/');
7 else
8     @define('CONST_Website_BaseURL', 'http://nominatim.openstreetmap.org/');
9
10 <% if @flatnode_file -%>
11 @define('CONST_Osm2pgsql_Flatnode_File', '<%= @flatnode_file %>');
12 <% end -%>
13 @define('CONST_Search_NameOnlySearchFrequencyThreshold', 500);
14
15 @define('CONST_Tablespace_Osm2pgsql_Data', 'dosm');
16 @define('CONST_Tablespace_Osm2pgsql_Index', 'iosm');
17 @define('CONST_Tablespace_Place_Data', 'dplace');
18 @define('CONST_Tablespace_Place_Index', 'iplace');
19 @define('CONST_Tablespace_Address_Data', 'daddress');
20 @define('CONST_Tablespace_Address_Index', 'iaddress');
21 @define('CONST_Tablespace_Search_Data', 'dsearch');
22 @define('CONST_Tablespace_Search_Index', 'isearch');
23 @define('CONST_Tablespace_Aux_Data', 'daux');
24 @define('CONST_Tablespace_Aux_Index', 'iaux');
25
26 @define('CONST_Log_File', '<%= @log_file %>');
27 @define('CONST_Log_DB', false);