X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/22ce6c9831d4a7041f575a9de7f7ede3740cbf07..dfd2bb176e3e87c8f71ea1a5c84a3ccfd185168f:/cookbooks/nominatim/templates/default/settings.erb diff --git a/cookbooks/nominatim/templates/default/settings.erb b/cookbooks/nominatim/templates/default/settings.erb index 0e335c2e4..454f56b5d 100644 --- a/cookbooks/nominatim/templates/default/settings.erb +++ b/cookbooks/nominatim/templates/default/settings.erb @@ -2,10 +2,9 @@ # DO NOT EDIT - This file is being maintained by Chef @define('CONST_Database_DSN', 'pgsql://@/<%= @dbname %>'); -if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS'])) - @define('CONST_Website_BaseURL', 'https://nominatim.openstreetmap.org/'); -else - @define('CONST_Website_BaseURL', 'http://nominatim.openstreetmap.org/'); +@define('CONST_Website_BaseURL', 'https://<%= @base_url %>/'); + +@define('CONST_Pyosmium_Binary', '/usr/local/bin/pyosmium-get-changes'); <% if @flatnode_file -%> @define('CONST_Osm2pgsql_Flatnode_File', '<%= @flatnode_file %>');