X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/22ce6c9831d4a7041f575a9de7f7ede3740cbf07..10d285506154265fc348843350ec800aed1d74fc:/cookbooks/nominatim/templates/default/settings.erb diff --git a/cookbooks/nominatim/templates/default/settings.erb b/cookbooks/nominatim/templates/default/settings.erb index 0e335c2e4..46b1b1a7d 100644 --- a/cookbooks/nominatim/templates/default/settings.erb +++ b/cookbooks/nominatim/templates/default/settings.erb @@ -3,9 +3,11 @@ @define('CONST_Database_DSN', 'pgsql://@/<%= @dbname %>'); if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS'])) - @define('CONST_Website_BaseURL', 'https://nominatim.openstreetmap.org/'); + @define('CONST_Website_BaseURL', 'https://<%= @base_url %>/'); else - @define('CONST_Website_BaseURL', 'http://nominatim.openstreetmap.org/'); + @define('CONST_Website_BaseURL', 'http://<%= @base_url %>/'); + +@define('CONST_Pyosmium_Binary', '/usr/local/bin/pyosmium-get-changes'); <% if @flatnode_file -%> @define('CONST_Osm2pgsql_Flatnode_File', '<%= @flatnode_file %>');