diff --git a/config/environments/development.js.example b/config/environments/development.js.example index df2273c7..c3fb8d5b 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -343,7 +343,27 @@ var config = { // whether the affected tables for a given SQL must query directly postgresql or use the SQL API cdbQueryTablesFromPostgres: true, // whether in mapconfig is available stats & metadata for each layer - layerStats: true + layerStats: true, + // whether it should rate limit endpoints (global configuration) + rateLimitsEnabled: false, + // whether it should rate limit one or more endpoints (only if rateLimitsEnabled = true) + rateLimitsByEndpoint: { + endpoint1: false, + endpoint2: false, + endpoint3: false, + endpoint5: false, + endpoint6: false, + endpoint7: false, + endpoint8: false, + endpoint9: false, + endpoint10: false, + endpoint11: false, + endpoint12: false, + endpoint13: false, + endpoint14: false, + endpoint15: false, + endpoint17: false + } } }; diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 9f7436df..fc7e40ea 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -345,7 +345,27 @@ var config = { // whether the affected tables for a given SQL must query directly postgresql or use the SQL API cdbQueryTablesFromPostgres: true, // whether in mapconfig is available stats & metadata for each layer - layerStats: false + layerStats: false, + // whether it should rate limit endpoints (global configuration) + rateLimitsEnabled: false, + // whether it should rate limit one or more endpoints (only if rateLimitsEnabled = true) + rateLimitsByEndpoint: { + endpoint1: false, + endpoint2: false, + endpoint3: false, + endpoint5: false, + endpoint6: false, + endpoint7: false, + endpoint8: false, + endpoint9: false, + endpoint10: false, + endpoint11: false, + endpoint12: false, + endpoint13: false, + endpoint14: false, + endpoint15: false, + endpoint17: false + } } }; diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 66c5a88c..29db7365 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -345,7 +345,27 @@ var config = { // whether the affected tables for a given SQL must query directly postgresql or use the SQL API cdbQueryTablesFromPostgres: true, // whether in mapconfig is available stats & metadata for each layer - layerStats: true + layerStats: true, + // whether it should rate limit endpoints (global configuration) + rateLimitsEnabled: false, + // whether it should rate limit one or more endpoints (only if rateLimitsEnabled = true) + rateLimitsByEndpoint: { + endpoint1: false, + endpoint2: false, + endpoint3: false, + endpoint5: false, + endpoint6: false, + endpoint7: false, + endpoint8: false, + endpoint9: false, + endpoint10: false, + endpoint11: false, + endpoint12: false, + endpoint13: false, + endpoint14: false, + endpoint15: false, + endpoint17: false + } } }; diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 0c98c4b6..4bb382ba 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -339,7 +339,27 @@ var config = { // whether the affected tables for a given SQL must query directly postgresql or use the SQL API cdbQueryTablesFromPostgres: true, // whether in mapconfig is available stats & metadata for each layer - layerStats: true + layerStats: true, + // whether it should rate limit endpoints (global configuration) + rateLimitsEnabled: false, + // whether it should rate limit one or more endpoints (only if rateLimitsEnabled = true) + rateLimitsByEndpoint: { + endpoint1: false, + endpoint2: false, + endpoint3: false, + endpoint5: false, + endpoint6: false, + endpoint7: false, + endpoint8: false, + endpoint9: false, + endpoint10: false, + endpoint11: false, + endpoint12: false, + endpoint13: false, + endpoint14: false, + endpoint15: false, + endpoint17: false + } } };