conf.ini.sample 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. ; config file for PrivateBin
  2. ;
  3. ; An explanation of each setting can be find online at https://github.com/PrivateBin/PrivateBin/wiki/Configuration.
  4. [main]
  5. ; (optional) set a project name to be displayed on the website
  6. ; name = "PrivateBin"
  7. ; enable or disable the discussion feature, defaults to true
  8. discussion = true
  9. ; preselect the discussion feature, defaults to false
  10. opendiscussion = false
  11. ; enable or disable the password feature, defaults to true
  12. password = true
  13. ; enable or disable the file upload feature, defaults to false
  14. fileupload = false
  15. ; preselect the burn-after-reading feature, defaults to false
  16. burnafterreadingselected = false
  17. ; delete a burn after reading paste immediatly after it is first accessed from
  18. ; the server and do not wait for a successful decryption
  19. instantburnafterreading = 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 Mebibytes
  26. sizelimit = 2097152
  27. ; template to include, default is "bootstrap" (tpl/bootstrap.php)
  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) IP based icons are a weak mechanism to detect if a comment was from
  43. ; a different user when the same username was used in a comment. It might be
  44. ; used to get the IP of a non anonymous comment poster if the server salt is
  45. ; leaked and a SHA256 HMAC rainbow table is generated for all (relevant) IPs.
  46. ; Can be set to one these values: none / vizhash / identicon (default).
  47. ; icon = none
  48. ; Content Security Policy headers allow a website to restrict what sources are
  49. ; allowed to be accessed in its context. You need to change this if you added
  50. ; custom scripts from third-party domains to your templates, e.g. tracking
  51. ; scripts or run your site behind certain DDoS-protection services.
  52. ; Check the documentation at https://content-security-policy.com/
  53. ; Note: If you use a bootstrap theme, you can remove the allow-popups from the sandbox restrictions.
  54. ; cspheader = "default-src 'none'; manifest-src 'self'; connect-src *; 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"
  55. ; stay compatible with PrivateBin Alpha 0.19, less secure
  56. ; if enabled will use base64.js version 1.7 instead of 2.1.9 and sha1 instead of
  57. ; sha256 in HMAC for the deletion token
  58. zerobincompatibility = false
  59. [expire]
  60. ; expire value that is selected per default
  61. ; make sure the value exists in [expire_options]
  62. default = "1week"
  63. ; optionally the "clone" button can be disabled on expiring pastes
  64. ; note that this only hides the button, copy & paste is still possible
  65. ; clone = false
  66. [expire_options]
  67. ; Set each one of these to the number of seconds in the expiration period,
  68. ; or 0 if it should never expire
  69. 5min = 300
  70. 10min = 600
  71. 1hour = 3600
  72. 1day = 86400
  73. 1week = 604800
  74. ; Well this is not *exactly* one month, it's 30 days:
  75. 1month = 2592000
  76. 1year = 31536000
  77. never = 0
  78. [formatter_options]
  79. ; Set available formatters, their order and their labels
  80. plaintext = "Plain Text"
  81. syntaxhighlighting = "Source Code"
  82. markdown = "Markdown"
  83. [traffic]
  84. ; time limit between calls from the same IP address in seconds
  85. ; Set this to 0 to disable rate limiting.
  86. limit = 10
  87. ; (optional) if your website runs behind a reverse proxy or load balancer,
  88. ; set the HTTP header containing the visitors IP address, i.e. X_FORWARDED_FOR
  89. ; header = "X_FORWARDED_FOR"
  90. ; directory to store the traffic limits in
  91. dir = PATH "data"
  92. [purge]
  93. ; minimum time limit between two purgings of expired pastes, it is only
  94. ; triggered when pastes are created
  95. ; Set this to 0 to run a purge every time a paste is created.
  96. limit = 300
  97. ; maximum amount of expired pastes to delete in one purge
  98. ; Set this to 0 to disable purging. Set it higher, if you are running a large
  99. ; site
  100. batchsize = 10
  101. ; directory to store the purge limit in
  102. dir = PATH "data"
  103. [model]
  104. ; name of data model class to load and directory for storage
  105. ; the default model "Filesystem" stores everything in the filesystem
  106. class = Filesystem
  107. [model_options]
  108. dir = PATH "data"
  109. ;[model]
  110. ; example of DB configuration for MySQL
  111. ;class = Database
  112. ;[model_options]
  113. ;dsn = "mysql:host=localhost;dbname=privatebin;charset=UTF8"
  114. ;tbl = "privatebin_" ; table prefix
  115. ;usr = "privatebin"
  116. ;pwd = "Z3r0P4ss"
  117. ;opt[12] = true ; PDO::ATTR_PERSISTENT
  118. ;[model]
  119. ; example of DB configuration for SQLite
  120. ;class = Database
  121. ;[model_options]
  122. ;dsn = "sqlite:" PATH "data/db.sq3"
  123. ;usr = null
  124. ;pwd = null
  125. ;opt[12] = true ; PDO::ATTR_PERSISTENT