]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: correctly forward to https
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 4 Aug 2020 17:06:44 +0000 (19:06 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 4 Aug 2020 17:06:44 +0000 (19:06 +0200)
cookbooks/nominatim/templates/default/nginx.erb

index f42c60f3b857806f93985ec3caecb3acef9ebc89..2c22ae850d9743e8f1963611be81c9615eff474e 100644 (file)
@@ -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;
         }
     }
 }