]> git.openstreetmap.org Git - rails.git/blobdiff - config/nginx.conf
Remove location block from abuse placeholder so it applies server wide.
[rails.git] / config / nginx.conf
index bd43f4c35bad85dfc5649b6c02a10962c2958234..876f2c2a569748b4574f68a88367173d1c5482c4 100644 (file)
@@ -139,9 +139,7 @@ http {
         }
 
         # Placeholder for blocking abuse
-        location / {
-            allow all; 
-        }
+        allow all; 
     
         # Map api.openstreetmap/0.n/... to api.openstreetmap/api/0.n/...
         if ($host ~* api\.(.*)) {
@@ -188,11 +186,14 @@ http {
 
         # Deny old and unknown API versions
         location ~ ^/api/0\.[0-9]+/ {
-            deny all;
+            return 404;
         }
             
         # Handle Special Case Expiry
-        location ~ ^/(export|openlayers)/ {
+        location ~ ^/openlayers/ {
+            expires 7d;
+        }
+        location ~ ^/export/embed.html$ {
             expires 7d;
         }
         location ~ ^/(images|javascripts|stylesheets)/ {