]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/nginx.erb
Tell certbot to prefer the legacy "DST Root CA X3" chain
[chef.git] / cookbooks / nominatim / templates / default / nginx.erb
index f42c60f3b857806f93985ec3caecb3acef9ebc89..d56d99c8a13b52fdae1fadfb8542fe34ed80da4a 100644 (file)
@@ -162,6 +162,7 @@ server {
         { return 403; }
         if ($blocked_email)
         { return 403; }
+        include <%= @confdir %>/nginx_blocked_generic.conf;
 
         limit_req zone=www burst=10;
         limit_req zone=tarpit burst=2;
@@ -172,7 +173,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;
         }
     }
 
@@ -183,6 +184,7 @@ server {
         { return 403; }
         if ($blocked_email)
         { return 403; }
+        include <%= @confdir %>/nginx_blocked_generic.conf;
 
         limit_req zone=www burst=10;
         limit_req zone=tarpit burst=2;
@@ -192,7 +194,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;
         }
     }
 }