From: Sarah Hoffmann Date: Tue, 4 Aug 2020 17:06:44 +0000 (+0200) Subject: nominatim: correctly forward to https X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/7216c8838b0804eca05f44ca4ac8a33f7d9fec73 nominatim: correctly forward to https --- diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index f42c60f3b..2c22ae850 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -172,7 +172,7 @@ server { fastcgi_param PATH_INFO "$nominatim_path_info"; fastcgi_param SCRIPT_FILENAME "$document_root/$nominatim_script_name"; if ($forward_to_ui) { - rewrite ^(/[^/]*) http://$host/ui$1.html redirect; + rewrite ^(/[^/]*) https://$host/ui$1.html redirect; } } @@ -192,7 +192,7 @@ server { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; if ($forward_to_ui) { - rewrite (.*).php http://$host/ui$1.html redirect; + rewrite (.*).php https://$host/ui$1.html redirect; } } }