From c0d36445d65eacdd7dc9b3cae88ab5b5f59c842c Mon Sep 17 00:00:00 2001 From: Guillaume RISCHARD Date: Tue, 16 Jan 2018 15:10:32 +0100 Subject: [PATCH] Use https URL for html base tag for nominatim.openstreetmap.org. --- cookbooks/nominatim/templates/default/settings.erb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cookbooks/nominatim/templates/default/settings.erb b/cookbooks/nominatim/templates/default/settings.erb index 46b1b1a7d..454f56b5d 100644 --- a/cookbooks/nominatim/templates/default/settings.erb +++ b/cookbooks/nominatim/templates/default/settings.erb @@ -2,10 +2,7 @@ # 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://<%= @base_url %>/'); -else - @define('CONST_Website_BaseURL', 'http://<%= @base_url %>/'); +@define('CONST_Website_BaseURL', 'https://<%= @base_url %>/'); @define('CONST_Pyosmium_Binary', '/usr/local/bin/pyosmium-get-changes'); -- 2.39.5