conf.ini.sample 5.3 KB

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