From 6564ed69d853e3d23d795ebaafc8b83a3ca3314b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Tue, 20 Feb 2018 11:46:38 +0100 Subject: [PATCH] config params --- config/environments/development.js.example | 22 +++++++++++++++++++++- config/environments/production.js.example | 22 +++++++++++++++++++++- config/environments/staging.js.example | 22 +++++++++++++++++++++- config/environments/test.js.example | 22 +++++++++++++++++++++- 4 files changed, 84 insertions(+), 4 deletions(-) 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 + } } };