]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: fix nginx variable name
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 24 Apr 2020 20:15:12 +0000 (22:15 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 24 Apr 2020 20:15:12 +0000 (22:15 +0200)
cookbooks/nominatim/templates/default/nginx.erb

index 1a5fa0c985015e22f2528df9372ec350def7418c..7790270b744e0eeb13214672e4981b02e3bbebe4 100644 (file)
@@ -98,8 +98,8 @@ server {
     }
 
     location / {
     }
 
     location / {
-        set anyid = $http_referer$http_user_agent$email_id;
-        if (anyid = "")
+        set $anyid = $http_referer$http_user_agent$email_id;
+        if ($anyid = "")
         { return 403; }
         if ($blocked_user_agent ~ ^2$)
         { return 403; }
         { return 403; }
         if ($blocked_user_agent ~ ^2$)
         { return 403; }