You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

55 regels
2.2 KiB

  1. <?php
  2. /**
  3. * RockMongo configuration
  4. *
  5. * Defining default options and server configuration
  6. * @package rockmongo
  7. */
  8. $MONGO = array();
  9. $MONGO["features"]["log_query"] = "on";//log queries
  10. $MONGO["features"]["theme"] = "default";//theme
  11. $MONGO["features"]["plugins"] = "on";//plugins
  12. $i = 0;
  13. /**
  14. * Configuration of MongoDB servers
  15. *
  16. * @see more details at http://rockmongo.com/wiki/configuration?lang=en_us
  17. */
  18. $MONGO["servers"][$i]["mongo_name"] = "Localhost";//mongo server name
  19. //$MONGO["servers"][$i]["mongo_sock"] = "/var/run/mongo.sock";//mongo socket path (instead of host and port)
  20. $MONGO["servers"][$i]["mongo_host"] = "127.0.0.1";//mongo host
  21. $MONGO["servers"][$i]["mongo_port"] = "27017";//mongo port
  22. $MONGO["servers"][$i]["mongo_timeout"] = 0;//mongo connection timeout
  23. //$MONGO["servers"][$i]["mongo_db"] = "MONGO_DATABASE";//default mongo db to connect, works only if mongo_auth=false
  24. //$MONGO["servers"][$i]["mongo_user"] = "MONGO_USERNAME";//mongo authentication user name, works only if mongo_auth=false
  25. //$MONGO["servers"][$i]["mongo_pass"] = "MONGO_PASSWORD";//mongo authentication password, works only if mongo_auth=false
  26. $MONGO["servers"][$i]["mongo_auth"] = false;//enable mongo authentication?
  27. $MONGO["servers"][$i]["control_auth"] = true;//enable control users, works only if mongo_auth=false
  28. $MONGO["servers"][$i]["control_users"]["admin"] = "admin";//one of control users ["USERNAME"]=PASSWORD, works only if mongo_auth=false
  29. $MONGO["servers"][$i]["ui_only_dbs"] = "";//databases to display
  30. $MONGO["servers"][$i]["ui_hide_dbs"] = "";//databases to hide
  31. $MONGO["servers"][$i]["ui_hide_collections"] = "";//collections to hide
  32. $MONGO["servers"][$i]["ui_hide_system_collections"] = false;//whether hide the system collections
  33. //$MONGO["servers"][$i]["docs_nature_order"] = false;//whether show documents by nature order, default is by _id field
  34. //$MONGO["servers"][$i]["docs_render"] = "default";//document highlight render, can be "default" or "plain"
  35. $i ++;
  36. /**
  37. * mini configuration for another mongo server
  38. */
  39. /**
  40. $MONGO["servers"][$i]["mongo_name"] = "Localhost2";
  41. $MONGO["servers"][$i]["mongo_host"] = "127.0.0.1";
  42. $MONGO["servers"][$i]["mongo_port"] = "27017";
  43. $MONGO["servers"][$i]["control_users"]["admin"] = "password";
  44. $i ++;
  45. **/
  46. ?>