diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 8aa86073..742d1980 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -34,6 +34,15 @@ module.exports.db_pool_size = 500; module.exports.db_pool_idleTimeout = 30000; // Milliseconds between idle client checking module.exports.db_pool_reapInterval = 1000; +// allows to use an object to connect with node-postgres instead of a connection string +//module.exports.db_use_config_object = true; +// requires enabling db_use_config_object=true +// allows to enable/disable keep alive for database connections +// by default is not enabled +//module.exports.db_keep_alive = { +// enabled: true, +// initialDelay: 5000 +//}; module.exports.redis_host = '127.0.0.1'; module.exports.redis_port = 6379; module.exports.redisPool = 50; diff --git a/config/environments/production.js.example b/config/environments/production.js.example index bcb85834..3446b6d6 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -35,6 +35,15 @@ module.exports.db_pool_size = 500; module.exports.db_pool_idleTimeout = 30000; // Milliseconds between idle client checking module.exports.db_pool_reapInterval = 1000; +// allows to use an object to connect with node-postgres instead of a connection string +//module.exports.db_use_config_object = true; +// requires enabling db_use_config_object=true +// allows to enable/disable keep alive for database connections +// by default is not enabled +//module.exports.db_keep_alive = { +// enabled: true, +// initialDelay: 5000 +//}; module.exports.redis_host = '127.0.0.1'; module.exports.redis_port = 6379; module.exports.redisPool = 50; diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 21bcd031..9f3af63e 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -40,6 +40,15 @@ module.exports.redis_port = 6379; module.exports.redisPool = 50; module.exports.redisIdleTimeoutMillis = 10000; module.exports.redisReapIntervalMillis = 1000; +// allows to use an object to connect with node-postgres instead of a connection string +//module.exports.db_use_config_object = true; +// requires enabling db_use_config_object=true +// allows to enable/disable keep alive for database connections +// by default is not enabled +//module.exports.db_keep_alive = { +// enabled: true, +// initialDelay: 5000 +//}; module.exports.redisLog = false; // Max number of entries in the query tables cache module.exports.tableCacheMax = 8192; diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 4ed76558..a03f3a31 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -32,6 +32,15 @@ module.exports.db_pool_size = 500; module.exports.db_pool_idleTimeout = 30000; // Milliseconds between idle client checking module.exports.db_pool_reapInterval = 1000; +// allows to use an object to connect with node-postgres instead of a connection string +//module.exports.db_use_config_object = true; +// requires enabling db_use_config_object=true +// allows to enable/disable keep alive for database connections +// by default is not enabled +//module.exports.db_keep_alive = { +// enabled: true, +// initialDelay: 5000 +//}; module.exports.redis_host = '127.0.0.1'; module.exports.redis_port = 6336; module.exports.redisPool = 50;