]> 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 366c1e1b29319ce3620e25fa0f353459e9a08ff7..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\.(.*)) {
@@ -192,7 +190,10 @@ http {
         }
             
         # Handle Special Case Expiry
-        location ~ ^/(export|openlayers)/ {
+        location ~ ^/openlayers/ {
+            expires 7d;
+        }
+        location ~ ^/export/embed.html$ {
             expires 7d;
         }
         location ~ ^/(images|javascripts|stylesheets)/ {