conf.ini.sample 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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.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. ; 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. ; by default ZeroBin will guess the visitors language based on the browsers
  35. ; settings. Optionally you can enable the language selection menu, which uses
  36. ; a session cookie to store the choice until the browser is closed.
  37. languageselection = false
  38. ; set the language your installs defaults to, defaults to English
  39. ; if this is set and language selection is disabled, this will be the only language
  40. ; languagedefault = "en"
  41. ; (optional) URL shortener address to offer after a new paste is created
  42. ; it is suggested to only use this with self-hosted shorteners as this will leak
  43. ; the pastes encryption key
  44. ; urlshortener = "https://shortener.example.com/api?link="
  45. [expire]
  46. ; expire value that is selected per default
  47. ; make sure the value exists in [expire_options]
  48. default = "1week"
  49. ; optionally the "clone" button can be disabled on expiring pastes
  50. ; note that this only hides the button, copy & paste is still possible
  51. ; clone = false
  52. [expire_options]
  53. ; Set each one of these to the number of seconds in the expiration period,
  54. ; or 0 if it should never expire
  55. 5min = 300
  56. 10min = 600
  57. 1hour = 3600
  58. 1day = 86400
  59. 1week = 604800
  60. ; Well this is not *exactly* one month, it's 30 days:
  61. 1month = 2592000
  62. 1year = 31536000
  63. never = 0
  64. [formatter_options]
  65. ; Set available formatters, their order and their labels
  66. plaintext = "Plain Text"
  67. syntaxhighlighting = "Source Code"
  68. markdown = "Markdown"
  69. [traffic]
  70. ; time limit between calls from the same IP address in seconds
  71. ; Set this to 0 to disable rate limiting.
  72. limit = 10
  73. ; (optional) if your website runs behind a reverse proxy or load balancer,
  74. ; set the HTTP header containing the visitors IP address, i.e. X_FORWARDED_FOR
  75. ; header = "X_FORWARDED_FOR"
  76. ; directory to store the traffic limits in
  77. dir = PATH "data"
  78. [model]
  79. ; name of data model class to load and directory for storage
  80. ; the default model "zerobin_data" stores everything in the filesystem
  81. class = zerobin_data
  82. [model_options]
  83. dir = PATH "data"
  84. ;[model]
  85. ; example of DB configuration for MySQL
  86. ;class = zerobin_db
  87. ;[model_options]
  88. ;dsn = "mysql:host=localhost;dbname=zerobin;charset=UTF8"
  89. ;tbl = "zerobin_" ; table prefix
  90. ;usr = "zerobin"
  91. ;pwd = "Z3r0P4ss"
  92. ;opt[12] = true ; PDO::ATTR_PERSISTENT
  93. ;[model]
  94. ; example of DB configuration for SQLite
  95. ;class = zerobin_db
  96. ;[model_options]
  97. ;dsn = "sqlite:" PATH "data/db.sq3"
  98. ;usr = null
  99. ;pwd = null
  100. ;opt[12] = true ; PDO::ATTR_PERSISTENT