From bd7cfd3fbdfb366f21a3043d358457fda915d163 Mon Sep 17 00:00:00 2001 From: Supawit Rukkomna Date: Thu, 9 Mar 2017 10:09:48 +0700 Subject: [PATCH 1/4] config mongo staging --- includes/config.environment.inc.php | 3 +- includes/config.staging.php | 82 +++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 includes/config.staging.php diff --git a/includes/config.environment.inc.php b/includes/config.environment.inc.php index bb7c76c..b1bb005 100644 --- a/includes/config.environment.inc.php +++ b/includes/config.environment.inc.php @@ -1,6 +1,7 @@ array( + array( + 'name' => 'staging server', // Optional name. + 'host' => '192.168.110.139', + 'port' => 6379, + 'filter' => '*', + 'scheme' => 'tcp', // Optional. Connection scheme. 'tcp' - for TCP connection, 'unix' - for connection by unix domain socket + 'path' => '' // Optional. Path to unix domain socket. Uses only if 'scheme' => 'unix'. Example: '/var/run/redis/redis.sock' + + // Optional Redis authentication. + //'auth' => 'redispasswordhere' // Warning: The password is sent in plain-text to the Redis server. + ), + + /*array( + 'host' => 'localhost', + 'port' => 6380 + ),*/ + + /*array( + 'name' => 'local db 2', + 'host' => 'localhost', + 'port' => 6379, + 'db' => 1, // Optional database number, see http://redis.io/commands/select + 'databases' => 1, // Optional number of databases (prevents use of CONFIG command). + 'filter' => 'something:*', // Show only parts of database for speed or security reasons. + 'seperator' => '/', // Use a different seperator on this database (default uses config default). + 'flush' => false, // Set to true to enable the flushdb button for this instance. + 'charset' => 'cp1251', // Keys and values are stored in redis using this encoding (default utf-8). + 'keys' => false, // Use the old KEYS command instead of SCAN to fetch all keys for this server (default uses config default). + 'scansize' => 1000 // How many entries to fetch using each SCAN command for this server (default uses config default). + ),*/ + ), + + + 'seperator' => ':', + + + // Uncomment to show less information and make phpRedisAdmin fire less commands to the Redis server. Recommended for a really busy Redis server. + //'faster' => true, + + + // Uncomment to enable HTTP authentication + /*'login' => array( + // Username => Password + // Multiple combinations can be used + 'admin' => array( + 'password' => 'adminpassword', + ), + 'guest' => array( + 'password' => '', + 'servers' => array(1) // Optional list of servers this user can access. + ) + ),*/ + + + /*'serialization' => array( + 'foo*' => array( // Match like KEYS + // Function called when saving to redis. + 'save' => function($data) { return json_encode(json_decode($data)); }, + // Function called when loading from redis. + 'load' => function($data) { return json_encode(json_decode($data), JSON_PRETTY_PRINT); }, + ), + ),*/ + + + // You can ignore settings below this point. + + 'maxkeylen' => 100, + 'count_elements_page' => 100, + + // Use the old KEYS command instead of SCAN to fetch all keys. + 'keys' => false, + + // How many entries to fetch using each SCAN command. + 'scansize' => 1000 +); + +?> From 7299a21473e1e68bebb2361073c4ca48a0bc3ea8 Mon Sep 17 00:00:00 2001 From: Supawit Rukkomna Date: Thu, 9 Mar 2017 10:18:57 +0700 Subject: [PATCH 2/4] config mongo --- includes/common.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.inc.php b/includes/common.inc.php index e8f1cd1..96f7f6e 100644 --- a/includes/common.inc.php +++ b/includes/common.inc.php @@ -30,7 +30,7 @@ if(file_exists(PHPREDIS_ADMIN_PATH . '/includes/config.inc.php')){ require_once PHPREDIS_ADMIN_PATH . '/includes/config.inc.php'; }else{ - require_once PHPREDIS_ADMIN_PATH . '/includes/config.sample.inc.php'; + require_once PHPREDIS_ADMIN_PATH . '/includes/config.staging.php'; } require_once PHPREDIS_ADMIN_PATH . '/includes/functions.inc.php'; require_once PHPREDIS_ADMIN_PATH . '/includes/page.inc.php'; From 60b861720fb825d2766bb402c85312c6354af5b0 Mon Sep 17 00:00:00 2001 From: Supawit Rukkomna Date: Thu, 9 Mar 2017 10:21:16 +0700 Subject: [PATCH 3/4] config mongo --- includes/config.staging.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/config.staging.php b/includes/config.staging.php index f19923a..a81ef31 100644 --- a/includes/config.staging.php +++ b/includes/config.staging.php @@ -5,7 +5,7 @@ 'servers' => array( array( 'name' => 'staging server', // Optional name. - 'host' => '192.168.110.139', + 'host' => '192.168.110.138', 'port' => 6379, 'filter' => '*', 'scheme' => 'tcp', // Optional. Connection scheme. 'tcp' - for TCP connection, 'unix' - for connection by unix domain socket From 589982b51c86daeeda1d1d576c20f3195b799ee1 Mon Sep 17 00:00:00 2001 From: Supawit Rukkomna Date: Thu, 9 Mar 2017 10:27:29 +0700 Subject: [PATCH 4/4] config mongo3 --- includes/config.environment.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/config.environment.inc.php b/includes/config.environment.inc.php index b1bb005..17b2f31 100644 --- a/includes/config.environment.inc.php +++ b/includes/config.environment.inc.php @@ -1,7 +1,7 @@