X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ed700e89a6c254a0a3ec360abbeef2380b1e1658..ba3b7db315b07e4d4df722571018cde36a09549b:/cookbooks/nominatim/templates/default/nominatim.erb diff --git a/cookbooks/nominatim/templates/default/nominatim.erb b/cookbooks/nominatim/templates/default/nominatim.erb index d36523d85..d1c3517e6 100644 --- a/cookbooks/nominatim/templates/default/nominatim.erb +++ b/cookbooks/nominatim/templates/default/nominatim.erb @@ -7,3 +7,15 @@ if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS'])) else @define('CONST_Website_BaseURL', 'http://nominatim.openstreetmap.org/'); +@define('CONST_Postgresql_Version', '<%= @postgres_version %>'); +@define('CONST_Postgis_Version', '<%= node[:nominatim][:database][:postgis] %>'); + +@define('CONST_Osm2pgsql_Flatnode_File', '<%= node[:nominatim][:flatnode_file] %>'); +@define('CONST_Search_NameOnlySearchFrequencyThreshold', 500); + +<% node[:nominatim][:tablespaces].each do |part,name| -%> +@define('CONST_Tablespace_<%= part %>', '<%= name %>'); +<% end -%> + +@define('CONST_Log_File', '/var/log/nominatim/query.log'); +@define('CONST_Log_DB', false);