]> git.openstreetmap.org Git - nominatim.git/blobdiff - settings/settings.php
Change access control to implement more of CORS. Change so OPTIONS requests don...
[nominatim.git] / settings / settings.php
index 656040358e1bef60018bc03347206eb0cb80c5e2..cd97b4a76fd7c9feda9ba19278df5c7880b394d6 100644 (file)
        // Connection buckets to rate limit people being nasty
        @define('CONST_ConnectionBucket_MemcacheServerAddress', false);
        @define('CONST_ConnectionBucket_MemcacheServerPort', 11211);
+       @define('CONST_ConnectionBucket_MaxBlockList', 100);
        @define('CONST_ConnectionBucket_LeakRate', 1);
        @define('CONST_ConnectionBucket_BlockLimit', 10);
        @define('CONST_ConnectionBucket_WaitLimit', 6);
+       @define('CONST_ConnectionBucket_MaxSleeping', 10);
        @define('CONST_ConnectionBucket_Cost_Reverse', 1);
        @define('CONST_ConnectionBucket_Cost_Search', 2);
        @define('CONST_ConnectionBucket_Cost_Details', 3);
 
+       // Override this function to add an adjustment factor to the cost
+       // based on server load. e.g. getBlockingProcesses
        if (!function_exists('user_busy_cost'))
        {
                function user_busy_cost()
@@ -33,6 +37,7 @@
        }
 
        // Website settings
+       @define('CONST_NoAccessControl', true);
        @define('CONST_ClosedForIndexing', false);
        @define('CONST_ClosedForIndexingExceptionIPs', '');
        @define('CONST_BlockedIPs', '');