config params

This commit is contained in:
Simon Martín 2018-02-20 11:46:38 +01:00
parent fadd9032c6
commit 6564ed69d8
4 changed files with 84 additions and 4 deletions

View File

@ -343,7 +343,27 @@ var config = {
// whether the affected tables for a given SQL must query directly postgresql or use the SQL API // whether the affected tables for a given SQL must query directly postgresql or use the SQL API
cdbQueryTablesFromPostgres: true, cdbQueryTablesFromPostgres: true,
// whether in mapconfig is available stats & metadata for each layer // 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
}
} }
}; };

View File

@ -345,7 +345,27 @@ var config = {
// whether the affected tables for a given SQL must query directly postgresql or use the SQL API // whether the affected tables for a given SQL must query directly postgresql or use the SQL API
cdbQueryTablesFromPostgres: true, cdbQueryTablesFromPostgres: true,
// whether in mapconfig is available stats & metadata for each layer // 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
}
} }
}; };

View File

@ -345,7 +345,27 @@ var config = {
// whether the affected tables for a given SQL must query directly postgresql or use the SQL API // whether the affected tables for a given SQL must query directly postgresql or use the SQL API
cdbQueryTablesFromPostgres: true, cdbQueryTablesFromPostgres: true,
// whether in mapconfig is available stats & metadata for each layer // 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
}
} }
}; };

View File

@ -339,7 +339,27 @@ var config = {
// whether the affected tables for a given SQL must query directly postgresql or use the SQL API // whether the affected tables for a given SQL must query directly postgresql or use the SQL API
cdbQueryTablesFromPostgres: true, cdbQueryTablesFromPostgres: true,
// whether in mapconfig is available stats & metadata for each layer // 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
}
} }
}; };