configuration.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Configuring Pwman3
  2. ==================
  3. By default Pwman3 will read the configuration file from the following path::
  4. ~/.pwman/config
  5. This is the ``PWMAN_CONFIG`` following.
  6. You can override this by giving the ``-c <Config File>`` at the commnad line
  7. when starting Pwman3.
  8. The configuration file has the following structure::
  9. [Section]
  10. Option = Value
  11. The following is an example default config file::
  12. [Readline]
  13. history = <PWMAN_CONFIG>/history
  14. [Global]
  15. save = True
  16. colors = yes
  17. cp_timeout = 5
  18. umask = 0100
  19. cls_timeout = 10
  20. xsel = /usr/bin/xsel
  21. [Database]
  22. filename = sqlite:///<PWMAN_CONFIG>/pwman.db`
  23. [Updater]
  24. supress_version_check = no
  25. client_info = ee5cd64310568736b971e3fb7c7064a4459b99a2b78672515fd0f06c82f65d5
  26. Following is a table describing the parameters and their meanings:
  27. ===================== ===========
  28. **Section** *Readline*
  29. --------------------- -----------
  30. *Global*
  31. history path to the file containing history of commands typed
  32. --------------------- -----------
  33. **Section** *Global*
  34. --------------------- -----------
  35. save True or False - whether the Configuring file should be saved
  36. --------------------- -----------
  37. colors yes or no - If set to *no*, no colors used in output. This is useful for breil terminals.
  38. --------------------- -----------
  39. cp_timeout Number of seconds before the clipboard is erased.
  40. --------------------- -----------
  41. cls_timeout Number of seconds before the screen is clean after a print.
  42. --------------------- -----------
  43. umask The umask in which database and configuration files are written.
  44. --------------------- -----------
  45. xsel path to the xsel binary (Linux\BSD only)
  46. --------------------- -----------
  47. **Section** *Database*
  48. --------------------- -----------
  49. dburi Database URI conforming to `RFC3986`_. SQLite, Postgreql,
  50. MySQL and MongoDB are currently supported.
  51. SQLite example: `sqlite:///path/to/your/db`
  52. Postgreql example: `postgresql://<user>:<pass>@<host[:port]>/<database>`
  53. MySQL example: `mysql://<user>:<pass>@<host[:port]>/<database>`
  54. MongoDB example: `mongodb://<user>:<pass>@<host[:port]>/<database>`
  55. --------------------- -----------
  56. **Section** *Updater*
  57. --------------------- -----------
  58. supress_version_check yes or no - check for newer versions of pwman3
  59. --------------------- -----------
  60. client_info sha256 digest of host name and username, used for identifying the client
  61. ===================== ===========
  62. .. _RFC3986: http://www.ietf.org/rfc/rfc3986.txt