conf.ini 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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.20
  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 "syntaxhighlighting"
  21. ; make sure the value exists in [formatter_options]
  22. defaultformatter = "syntaxhighlighting"
  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. ; base64.js library version, defaults to 2.1.9
  32. ; use "1.7" if you are upgrading from a ZeroBin Alpha 0.19 installation
  33. base64version = "2.1.9"
  34. [expire]
  35. ; expire value that is selected per default
  36. ; make sure the value exists in [expire_options]
  37. default = "1week"
  38. [expire_options]
  39. ; Set each one of these to the number of seconds in the expiration period,
  40. ; or 0 if it should never expire
  41. 5min = 300
  42. 10min = 600
  43. 1hour = 3600
  44. 1day = 86400
  45. 1week = 604800
  46. ; Well this is not *exactly* one month, it's 30 days:
  47. 1month = 2592000
  48. 1year = 31536000
  49. never = 0
  50. [formatter_options]
  51. ; Set available formatters, their order and their labels
  52. plaintext = "Plain Text"
  53. syntaxhighlighting = "Source Code"
  54. markdown = "Markdown"
  55. [traffic]
  56. ; time limit between calls from the same IP address in seconds
  57. ; Set this to 0 to disable rate limiting.
  58. limit = 10
  59. ; (optional) if your website runs behind a reverse proxy or load balancer,
  60. ; set the HTTP header containing the visitors IP address, i.e. X_FORWARDED_FOR
  61. ; header = "X_FORWARDED_FOR"
  62. ; directory to store the traffic limits in
  63. dir = PATH "data"
  64. [model]
  65. ; name of data model class to load and directory for storage
  66. ; the default model "zerobin_data" stores everything in the filesystem
  67. class = zerobin_data
  68. [model_options]
  69. dir = PATH "data"
  70. ;[model]
  71. ; example of DB configuration for MySQL
  72. ;class = zerobin_db
  73. ;[model_options]
  74. ;dsn = "mysql:host=localhost;dbname=zerobin;charset=UTF8"
  75. ;tbl = "zerobin_" ; table prefix
  76. ;usr = "zerobin"
  77. ;pwd = "Z3r0P4ss"
  78. ;opt[12] = true ; PDO::ATTR_PERSISTENT
  79. ;[model]
  80. ; example of DB configuration for SQLite
  81. ;class = zerobin_db
  82. ;[model_options]
  83. ;dsn = "sqlite:" PATH "data/db.sq3"
  84. ;usr = null
  85. ;pwd = null
  86. ;opt[12] = true ; PDO::ATTR_PERSISTENT