X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ca2e5d46228417b3996f8b0abda659a2f07a9047..c6902ea9afba17351101f28b4a401e5193b89c1b:/cookbooks/nominatim/templates/default/settings.erb diff --git a/cookbooks/nominatim/templates/default/settings.erb b/cookbooks/nominatim/templates/default/settings.erb index afab0803e..18858ca07 100644 --- a/cookbooks/nominatim/templates/default/settings.erb +++ b/cookbooks/nominatim/templates/default/settings.erb @@ -1,11 +1,8 @@ '); -if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS'])) - @define('CONST_Website_BaseURL', 'https://<%= @base_url %>/'); -else - @define('CONST_Website_BaseURL', 'http://<%= @base_url %>/'); +@define('CONST_Database_DSN', 'pgsql:dbname=<%= @dbname %>'); +@define('CONST_Website_BaseURL', 'https://<%= @base_url %>/'); <% if @flatnode_file -%> @define('CONST_Osm2pgsql_Flatnode_File', '<%= @flatnode_file %>');