conf.sample.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. ;<?php http_response_code(403); /*
  2. ; config file for PrivateBin
  3. ;
  4. ; An explanation of each setting can be find online at https://github.com/PrivateBin/PrivateBin/wiki/Configuration.
  5. [main]
  6. ; (optional) set a project name to be displayed on the website
  7. ; name = "PrivateBin"
  8. ; enable or disable the discussion feature, defaults to true
  9. discussion = true
  10. ; preselect the discussion feature, defaults to false
  11. opendiscussion = false
  12. ; enable or disable the password feature, defaults to true
  13. password = true
  14. ; enable or disable the file upload feature, defaults to false
  15. fileupload = false
  16. ; preselect the burn-after-reading feature, defaults to false
  17. burnafterreadingselected = false
  18. ; delete a burn after reading paste immediatly after it is first accessed from
  19. ; the server and do not wait for a successful decryption
  20. instantburnafterreading = false
  21. ; which display mode to preselect by default, defaults to "plaintext"
  22. ; make sure the value exists in [formatter_options]
  23. defaultformatter = "plaintext"
  24. ; (optional) set a syntax highlighting theme, as found in css/prettify/
  25. ; syntaxhighlightingtheme = "sons-of-obsidian"
  26. ; size limit per paste or comment in bytes, defaults to 2 Mebibytes
  27. sizelimit = 2097152
  28. ; template to include, default is "bootstrap" (tpl/bootstrap.php)
  29. template = "bootstrap"
  30. ; (optional) notice to display
  31. ; notice = "Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service."
  32. ; by default PrivateBin will guess the visitors language based on the browsers
  33. ; settings. Optionally you can enable the language selection menu, which uses
  34. ; a session cookie to store the choice until the browser is closed.
  35. languageselection = false
  36. ; set the language your installs defaults to, defaults to English
  37. ; if this is set and language selection is disabled, this will be the only language
  38. ; languagedefault = "en"
  39. ; (optional) URL shortener address to offer after a new paste is created
  40. ; it is suggested to only use this with self-hosted shorteners as this will leak
  41. ; the pastes encryption key
  42. ; urlshortener = "https://shortener.example.com/api?link="
  43. ; (optional) Let users create a QR code for sharing the paste URL with one click.
  44. ; It works both when a new paste is created and when you view a paste.
  45. ; qrcode = true
  46. ; (optional) IP based icons are a weak mechanism to detect if a comment was from
  47. ; a different user when the same username was used in a comment. It might be
  48. ; used to get the IP of a non anonymous comment poster if the server salt is
  49. ; leaked and a SHA256 HMAC rainbow table is generated for all (relevant) IPs.
  50. ; Can be set to one these values: none / vizhash / identicon (default).
  51. ; icon = none
  52. ; Content Security Policy headers allow a website to restrict what sources are
  53. ; allowed to be accessed in its context. You need to change this if you added
  54. ; custom scripts from third-party domains to your templates, e.g. tracking
  55. ; scripts or run your site behind certain DDoS-protection services.
  56. ; Check the documentation at https://content-security-policy.com/
  57. ; Note: If you use a bootstrap theme, you can remove the allow-popups from the sandbox restrictions.
  58. ; cspheader = "default-src 'none'; manifest-src 'self'; connect-src *; form-action 'none'; script-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' data:; referrer no-referrer; sandbox allow-same-origin allow-scripts allow-forms allow-popups"
  59. ; stay compatible with PrivateBin Alpha 0.19, less secure
  60. ; if enabled will use base64.js version 1.7 instead of 2.1.9 and sha1 instead of
  61. ; sha256 in HMAC for the deletion token
  62. zerobincompatibility = false
  63. [expire]
  64. ; expire value that is selected per default
  65. ; make sure the value exists in [expire_options]
  66. default = "1week"
  67. ; optionally the "clone" button can be disabled on expiring pastes
  68. ; note that this only hides the button, copy & paste is still possible
  69. ; clone = false
  70. [expire_options]
  71. ; Set each one of these to the number of seconds in the expiration period,
  72. ; or 0 if it should never expire
  73. 5min = 300
  74. 10min = 600
  75. 1hour = 3600
  76. 1day = 86400
  77. 1week = 604800
  78. ; Well this is not *exactly* one month, it's 30 days:
  79. 1month = 2592000
  80. 1year = 31536000
  81. never = 0
  82. [formatter_options]
  83. ; Set available formatters, their order and their labels
  84. plaintext = "Plain Text"
  85. syntaxhighlighting = "Source Code"
  86. markdown = "Markdown"
  87. [traffic]
  88. ; time limit between calls from the same IP address in seconds
  89. ; Set this to 0 to disable rate limiting.
  90. limit = 10
  91. ; (optional) if your website runs behind a reverse proxy or load balancer,
  92. ; set the HTTP header containing the visitors IP address, i.e. X_FORWARDED_FOR
  93. ; header = "X_FORWARDED_FOR"
  94. ; directory to store the traffic limits in
  95. dir = PATH "data"
  96. [purge]
  97. ; minimum time limit between two purgings of expired pastes, it is only
  98. ; triggered when pastes are created
  99. ; Set this to 0 to run a purge every time a paste is created.
  100. limit = 300
  101. ; maximum amount of expired pastes to delete in one purge
  102. ; Set this to 0 to disable purging. Set it higher, if you are running a large
  103. ; site
  104. batchsize = 10
  105. ; directory to store the purge limit in
  106. dir = PATH "data"
  107. [model]
  108. ; name of data model class to load and directory for storage
  109. ; the default model "Filesystem" stores everything in the filesystem
  110. class = Filesystem
  111. [model_options]
  112. dir = PATH "data"
  113. ;[model]
  114. ; example of DB configuration for MySQL
  115. ;class = Database
  116. ;[model_options]
  117. ;dsn = "mysql:host=localhost;dbname=privatebin;charset=UTF8"
  118. ;tbl = "privatebin_" ; table prefix
  119. ;usr = "privatebin"
  120. ;pwd = "Z3r0P4ss"
  121. ;opt[12] = true ; PDO::ATTR_PERSISTENT
  122. ;[model]
  123. ; example of DB configuration for SQLite
  124. ;class = Database
  125. ;[model_options]
  126. ;dsn = "sqlite:" PATH "data/db.sq3"
  127. ;usr = null
  128. ;pwd = null
  129. ;opt[12] = true ; PDO::ATTR_PERSISTENT