configuration.rst 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. lock_timeout = 60
  22. [Database]
  23. filename = sqlite:///<PWMAN_CONFIG>/pwman.db`
  24. [Updater]
  25. supress_version_check = no
  26. client_info = ee5cd64310568736b971e3fb7c7064a4459b99a2b78672515fd0f06c82f65d5
  27. Following is a table describing the parameters and their meanings:
  28. ===================== ===========
  29. **Section** *Readline*
  30. --------------------- -----------
  31. *Global*
  32. history path to the file containing history of commands typed
  33. --------------------- -----------
  34. **Section** *Global*
  35. --------------------- -----------
  36. save True or False - whether the Configuring file should be saved
  37. --------------------- -----------
  38. colors yes or no - If set to *no*, no colors used in output. This is useful for breil terminals.
  39. --------------------- -----------
  40. cp_timeout Number of seconds before the clipboard is erased.
  41. --------------------- -----------
  42. cls_timeout Number of seconds before the screen is clean after a print.
  43. --------------------- -----------
  44. umask The umask in which database and configuration files are written.
  45. --------------------- -----------
  46. xsel path to the xsel binary (Linux\BSD only).
  47. --------------------- -----------
  48. lock_timeout set the period (in secods) after which the database is locked.
  49. --------------------- -----------
  50. **Section** *Database*
  51. --------------------- -----------
  52. dburi Database URI conforming to `RFC3986`_. SQLite, Postgreql,
  53. MySQL and MongoDB are currently supported.
  54. SQLite example: `sqlite:///path/to/your/db`
  55. Postgreql example: `postgresql://<user>:<pass>@<host[:port]>/<database>`
  56. MySQL example: `mysql://<user>:<pass>@<host[:port]>/<database>`
  57. MongoDB example: `mongodb://<user>:<pass>@<host[:port]>/<database>`
  58. --------------------- -----------
  59. **Section** *Updater*
  60. --------------------- -----------
  61. supress_version_check yes or no - check for newer versions of pwman3
  62. --------------------- -----------
  63. client_info sha256 digest of host name and username, used for identifying the client
  64. ===================== ===========
  65. .. _RFC3986: http://www.ietf.org/rfc/rfc3986.txt