]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: switch php frontend back to old root dir
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 30 Jul 2023 10:01:21 +0000 (12:01 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 30 Jul 2023 10:01:21 +0000 (12:01 +0200)
cookbooks/nominatim/templates/default/nginx.erb

index 3d7d0e19ca8648446028af2543d609fa1c18f9fd..96648e3e31da966a03744e09500faf29c62d6ee3 100644 (file)
@@ -145,7 +145,11 @@ server {
     ssl_certificate /etc/ssl/certs/<%= node[:fqdn] %>.pem;
     ssl_certificate_key /etc/ssl/private/<%= node[:fqdn] %>.key;
 
+<% if node[:nominatim][:api_flavour] == "php" %>
+    root <%= @directory %>/website;
+<% else -%>
     root <%= @directory %>/static-website;
+<% end -%>
     index search.php;
 
     access_log <%= node[:nominatim][:logdir] %>/nominatim.openstreetmap.org-access.log combined;