conf.ini.sample 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. ; PrivateBin
  2. ;
  3. ; a zero-knowledge paste bin
  4. ;
  5. ; @link https://github.com/PrivateBin/PrivateBin
  6. ; @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
  7. ; @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
  8. ; @version 0.22
  9. [main]
  10. ; enable or disable the discussion feature, defaults to true
  11. discussion = true
  12. ; preselect the discussion feature, defaults to false
  13. opendiscussion = false
  14. ; enable or disable the password feature, defaults to true
  15. password = true
  16. ; enable or disable the file upload feature, defaults to false
  17. fileupload = false
  18. ; preselect the burn-after-reading feature, defaults to false
  19. burnafterreadingselected = false
  20. ; which display mode to preselect by default, defaults to "plaintext"
  21. ; make sure the value exists in [formatter_options]
  22. defaultformatter = "plaintext"
  23. ; (optional) set a syntax highlighting theme, as found in css/prettify/
  24. ; syntaxhighlightingtheme = "sons-of-obsidian"
  25. ; size limit per paste or comment in bytes, defaults to 2 Mibibytes
  26. sizelimit = 2097152
  27. ; template to include, default is "bootstrap" (tpl/bootstrap.html)
  28. template = "bootstrap"
  29. ; (optional) notice to display
  30. ; notice = "Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service."
  31. ; by default PrivateBin will guess the visitors language based on the browsers
  32. ; settings. Optionally you can enable the language selection menu, which uses
  33. ; a session cookie to store the choice until the browser is closed.
  34. languageselection = false
  35. ; set the language your installs defaults to, defaults to English
  36. ; if this is set and language selection is disabled, this will be the only language
  37. ; languagedefault = "en"
  38. ; (optional) URL shortener address to offer after a new paste is created
  39. ; it is suggested to only use this with self-hosted shorteners as this will leak
  40. ; the pastes encryption key
  41. ; urlshortener = "https://shortener.example.com/api?link="
  42. ; (optional) vizhash is a weak mechanism to detect if a comment was from a
  43. ; different user when the same username was used in a comment. It is based on
  44. ; the IP and might be used to get the posters IP if the server salt is leaked
  45. ; and a rainbow table is generated for all IPs. Enabled by default.
  46. ; vizhash = false
  47. ; stay compatible with PrivateBin Alpha 0.19, less secure
  48. ; if enabled will use base64.js version 1.7 instead of 2.1.9 and sha1 instead of
  49. ; sha256 in HMAC for the deletion token
  50. zerobincompatibility = false
  51. [expire]
  52. ; expire value that is selected per default
  53. ; make sure the value exists in [expire_options]
  54. default = "1week"
  55. ; optionally the "clone" button can be disabled on expiring pastes
  56. ; note that this only hides the button, copy & paste is still possible
  57. ; clone = false
  58. [expire_options]
  59. ; Set each one of these to the number of seconds in the expiration period,
  60. ; or 0 if it should never expire
  61. 5min = 300
  62. 10min = 600
  63. 1hour = 3600
  64. 1day = 86400
  65. 1week = 604800
  66. ; Well this is not *exactly* one month, it's 30 days:
  67. 1month = 2592000
  68. 1year = 31536000
  69. never = 0
  70. [formatter_options]
  71. ; Set available formatters, their order and their labels
  72. plaintext = "Plain Text"
  73. syntaxhighlighting = "Source Code"
  74. markdown = "Markdown"
  75. [traffic]
  76. ; time limit between calls from the same IP address in seconds
  77. ; Set this to 0 to disable rate limiting.
  78. limit = 10
  79. ; (optional) if your website runs behind a reverse proxy or load balancer,
  80. ; set the HTTP header containing the visitors IP address, i.e. X_FORWARDED_FOR
  81. ; header = "X_FORWARDED_FOR"
  82. ; directory to store the traffic limits in
  83. dir = PATH "data"
  84. [purge]
  85. ; minimum time limit between two purgings of expired pastes, it is only
  86. ; triggered when pastes are created
  87. ; Set this to 0 to run a purge every time a paste is created.
  88. limit = 300
  89. ; maximum amount of expired pastes to delete in one purge
  90. ; Set this to 0 to disable purging. Set it higher, if you are running a large
  91. ; site
  92. batchsize = 10
  93. ; directory to store the purge limit in
  94. dir = PATH "data"
  95. [model]
  96. ; name of data model class to load and directory for storage
  97. ; the default model "privatebin_data" stores everything in the filesystem
  98. class = privatebin_data
  99. [model_options]
  100. dir = PATH "data"
  101. ;[model]
  102. ; example of DB configuration for MySQL
  103. ;class = privatebin_db
  104. ;[model_options]
  105. ;dsn = "mysql:host=localhost;dbname=privatebin;charset=UTF8"
  106. ;tbl = "privatebin_" ; table prefix
  107. ;usr = "privatebin"
  108. ;pwd = "Z3r0P4ss"
  109. ;opt[12] = true ; PDO::ATTR_PERSISTENT
  110. ;[model]
  111. ; example of DB configuration for SQLite
  112. ;class = privatebin_db
  113. ;[model_options]
  114. ;dsn = "sqlite:" PATH "data/db.sq3"
  115. ;usr = null
  116. ;pwd = null
  117. ;opt[12] = true ; PDO::ATTR_PERSISTENT