config.inc.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?php
  2. /**
  3. * Central phpPgAdmin configuration. As a user you may modify the
  4. * settings here for your particular configuration.
  5. *
  6. * $Id: config.inc.php-dist,v 1.55 2008/02/18 21:10:31 xzilla Exp $
  7. */
  8. // An example server. Create as many of these as you wish,
  9. // indexed from zero upwards.
  10. // Display name for the server on the login screen
  11. $conf["servers"][0]["desc"] = "PostgreSQL";
  12. // Hostname or IP address for server. Use '' for UNIX domain socket.
  13. // use 'localhost' for TCP/IP connection on this computer
  14. $conf["servers"][0]["host"] = "localhost";
  15. // Database port on server (5432 is the PostgreSQL default)
  16. $conf["servers"][0]["port"] = 5432;
  17. // Database SSL mode
  18. // Possible options: disable, allow, prefer, require
  19. // To require SSL on older servers use option: legacy
  20. // To ignore the SSL mode, use option: unspecified
  21. $conf["servers"][0]["sslmode"] = "allow";
  22. // Change the default database only if you cannot connect to template1.
  23. // For a PostgreSQL 8.1+ server, you can set this to 'postgres'.
  24. $conf["servers"][0]["defaultdb"] = "template1";
  25. // Specify the path to the database dump utilities for this server.
  26. // You can set these to '' if no dumper is available.
  27. $conf["servers"][0]["pg_dump_path"] = "/usr/bin/pg_dump";
  28. $conf["servers"][0]["pg_dumpall_path"] = "/usr/bin/pg_dumpall";
  29. // Slony (www.slony.info) support?
  30. $conf["servers"][0]["slony_support"] = false;
  31. // Specify the path to the Slony SQL scripts (where slony1_base.sql is located, etc.)
  32. // No trailing slash.
  33. $conf["servers"][0]["slony_sql"] = "/usr/share/pgsql";
  34. // Example for a second server (PostgreSQL for Windows)
  35. //$conf['servers'][1]['desc'] = 'Test Server';
  36. //$conf['servers'][1]['host'] = '127.0.0.1';
  37. //$conf['servers'][1]['port'] = 5432;
  38. //$conf['servers'][1]['sslmode'] = 'allow';
  39. //$conf['servers'][1]['defaultdb'] = 'template1';
  40. //$conf['servers'][1]['pg_dump_path'] = 'C:\\Program Files\\PostgreSQL\\8.0\\bin\\pg_dump.exe';
  41. //$conf['servers'][1]['pg_dumpall_path'] = 'C:\\Program Files\\PostgreSQL\\8.0\\bin\\pg_dumpall.exe';
  42. //$conf['servers'][1]['slony_support'] = false;
  43. //$conf['servers'][1]['slony_sql'] = 'C:\\Program Files\\PostgreSQL\\8.0\\share';
  44. // Example of groups definition.
  45. // Groups allow administrators to logically group servers together under group nodes in the left browser tree
  46. //
  47. // The group '0' description
  48. //$conf['srv_groups'][0]['desc'] = 'group one';
  49. //
  50. // Add here server indexes belonging to the group '0' separated by comma
  51. //$conf['srv_groups'][0]['servers'] = '0,1,2';
  52. //
  53. // A server can belong to multi groups
  54. //$conf['srv_groups'][1]['desc'] = 'group two';
  55. //$conf['srv_groups'][1]['servers'] = '3,1';
  56. // Default language. E.g.: 'english', 'polish', etc. See lang/ directory
  57. // for all possibilities. If you specify 'auto' (the default) it will use
  58. // your browser preference.
  59. $conf["default_lang"] = "auto";
  60. // AutoComplete uses AJAX interaction to list foreign key values
  61. // on insert fields. It currently only works on single column
  62. // foreign keys. You can choose one of the following values:
  63. // 'default on' enables AutoComplete and turns it on by default.
  64. // 'default off' enables AutoComplete but turns it off by default.
  65. // 'disable' disables AutoComplete.
  66. $conf["autocomplete"] = "default on";
  67. // If extra session security is true, then PHP's session cookies will have
  68. // SameSite cookie flags set to prevent CSRF attacks. If you're using
  69. // auto-start sessions, autostarted sessions will be destroyed and
  70. // restarted with SameSite on. If this this solution is not acceptable for
  71. // your situation, you will need to either turn off auot-start sessions, or
  72. // turn off secure sessions. Versions of PHP below 7.3 do not have access
  73. // to this feature and will be vulnerable to CSRF attacks.
  74. $conf["extra_session_security"] = true;
  75. // If extra login security is true, then logins via phpPgAdmin with no
  76. // password or certain usernames (pgsql, postgres, root, administrator)
  77. // will be denied. Only set this false once you have read the FAQ and
  78. // understand how to change PostgreSQL's pg_hba.conf to enable
  79. // passworded local connections.
  80. $conf["extra_login_security"] = true;
  81. // Only show owned databases?
  82. // Note: This will simply hide other databases in the list - this does
  83. // not in any way prevent your users from seeing other database by
  84. // other means. (e.g. Run 'SELECT * FROM pg_database' in the SQL area.)
  85. $conf["owned_only"] = false;
  86. // Display comments on objects? Comments are a good way of documenting
  87. // a database, but they do take up space in the interface.
  88. $conf["show_comments"] = true;
  89. // Display "advanced" objects? Setting this to true will show
  90. // aggregates, types, operators, operator classes, conversions,
  91. // languages and casts in phpPgAdmin. These objects are rarely
  92. // administered and can clutter the interface.
  93. $conf["show_advanced"] = false;
  94. // Display "system" objects?
  95. $conf["show_system"] = false;
  96. // Display reports feature? For this feature to work, you must
  97. // install the reports database as explained in the INSTALL file.
  98. $conf["show_reports"] = true;
  99. // Database and table for reports
  100. $conf["reports_db"] = "phppgadmin";
  101. $conf["reports_schema"] = "public";
  102. $conf["reports_table"] = "ppa_reports";
  103. // Only show owned reports?
  104. // Note: This does not prevent people from accessing other reports by
  105. // other means.
  106. $conf["owned_reports_only"] = false;
  107. // Minimum length users can set their password to.
  108. $conf["min_password_length"] = 1;
  109. // Width of the left frame in pixels (object browser)
  110. $conf["left_width"] = 200;
  111. // Which look & feel theme to use
  112. $conf["theme"] = "default";
  113. // Show OIDs when browsing tables?
  114. $conf["show_oids"] = false;
  115. // Max rows to show on a page when browsing record sets
  116. $conf["max_rows"] = 30;
  117. // Max chars of each field to display by default in browse mode
  118. $conf["max_chars"] = 50;
  119. // Send XHTML strict headers?
  120. $conf["use_xhtml_strict"] = false;
  121. // Base URL for PostgreSQL documentation.
  122. // '%s', if present, will be replaced with the PostgreSQL version
  123. // (e.g. 8.4 )
  124. $conf["help_base"] = "http://www.postgresql.org/docs/%s/interactive/";
  125. // Configuration for ajax scripts
  126. // Time in seconds. If set to 0, refreshing data using ajax will be disabled (locks and activity pages)
  127. $conf["ajax_refresh"] = 3;
  128. /*****************************************
  129. * Don't modify anything below this line *
  130. *****************************************/
  131. $conf["version"] = 19;
  132. ?>