conf.ini 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ; ZeroBin
  2. ;
  3. ; a zero-knowledge paste bin
  4. ;
  5. ; @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
  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.18
  9. [main]
  10. ; enable or disable discussions, defaults to true
  11. opendiscussion = true
  12. ; enable or disable syntax highlighting, defaults to true
  13. syntaxhighlighting = true
  14. ; preselect the burn-after-reading feature by default, defaults to false
  15. burnafterreadingselected = false
  16. ; size limit per paste or comment in bytes, defaults to 2 Mibibytes
  17. sizelimit = 2097152
  18. ; template to include, default is "page" (tpl/page.html)
  19. template = "page"
  20. ; base64.js library version, defaults to 2.1.9
  21. ; use "1.7" if you are upgrading from a ZeroBin Alpha 0.19 installation
  22. base64version = "2.1.9"
  23. [expire]
  24. ; expire value that is selected per default
  25. ; make sure the value exists in [expire_options]
  26. default = "1month"
  27. [expire_options]
  28. ; Set each one of these to the number of seconds in the expiration period,
  29. ; or 0 if it should never expire
  30. 5min = 300
  31. 10min = 600
  32. 1hour = 3600
  33. 1day = 86400
  34. 1week = 604800
  35. ; Well this is not *exactly* one month, it's 30 days:
  36. 1month = 2592000
  37. 1year = 31536000
  38. never = 0
  39. [expire_labels]
  40. ; descriptive labels for the expiration times
  41. ; must match those in [expire_options]
  42. 5min = "5 minutes"
  43. 10min = "10 minutes"
  44. 1hour = "1 hour"
  45. 1day = "1 day"
  46. 1week = "1 week"
  47. 1month = "1 month"
  48. 1year = "1 year"
  49. never = "Never"
  50. [traffic]
  51. ; time limit between calls from the same IP address in seconds
  52. ; Set this to 0 to disable rate limiting.
  53. limit = 10
  54. dir = PATH "data"
  55. [model]
  56. ; name of data model class to load and directory for storage
  57. ; the default model "zerobin_data" stores everything in the filesystem
  58. class = zerobin_data
  59. [model_options]
  60. dir = PATH "data"
  61. ;[model]
  62. ; example of DB configuration for MySQL
  63. ;class = zerobin_db
  64. ;[model_options]
  65. ;dsn = "mysql:host=localhost;dbname=zerobin;charset=UTF8"
  66. ;tbl = "zerobin_" ; table prefix
  67. ;usr = "zerobin"
  68. ;pwd = "Z3r0P4ss"
  69. ;opt[12] = true ; PDO::ATTR_PERSISTENT
  70. ;[model]
  71. ; example of DB configuration for SQLite
  72. ;class = zerobin_db
  73. ;[model_options]
  74. ;dsn = "sqlite:" PATH "data/db.sq3"
  75. ;usr = null
  76. ;pwd = null
  77. ;opt[12] = true ; PDO::ATTR_PERSISTENT