2012-04-29 17:15:06 +00:00
|
|
|
; ZeroBin
|
|
|
|
;
|
|
|
|
; a zero-knowledge paste bin
|
|
|
|
;
|
|
|
|
; @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
|
|
|
|
; @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
|
|
|
; @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
|
|
|
; @version 0.15
|
|
|
|
|
2012-05-19 21:59:41 +00:00
|
|
|
[main]
|
|
|
|
; enable or disable discussions
|
|
|
|
opendiscussion = true
|
2012-04-29 17:15:06 +00:00
|
|
|
|
2012-04-30 20:58:08 +00:00
|
|
|
; size limit per paste or comment in bytes
|
2012-05-19 21:59:41 +00:00
|
|
|
sizelimit = 2097152
|
|
|
|
|
|
|
|
[traffic]
|
|
|
|
; time limit between calls from the same IP address in seconds
|
|
|
|
limit = 10
|
|
|
|
dir = PATH "data"
|
2012-04-30 20:58:08 +00:00
|
|
|
|
2012-05-19 21:59:41 +00:00
|
|
|
[model]
|
2012-04-29 17:15:06 +00:00
|
|
|
; name of data model class to load and directory for storage
|
|
|
|
; the default model "zerobin_data" stores everything in the filesystem
|
2012-05-19 21:59:41 +00:00
|
|
|
class = zerobin_data
|
|
|
|
[model_options]
|
|
|
|
dir = PATH "data"
|
2012-04-29 17:15:06 +00:00
|
|
|
|
2012-05-19 21:59:41 +00:00
|
|
|
;[model]
|
2012-04-29 17:15:06 +00:00
|
|
|
; example of DB configuration for MySQL
|
2012-05-19 21:59:41 +00:00
|
|
|
;class = zerobin_db
|
|
|
|
;[model_options]
|
|
|
|
;dsn = "mysql:host=localhost;dbname=zerobin;charset=UTF8"
|
|
|
|
;tbl = "zerobin_" ; table prefix
|
|
|
|
;usr = "zerobin"
|
|
|
|
;pwd = "Z3r0P4ss"
|
|
|
|
;opt[12] = true ; PDO::ATTR_PERSISTENT
|
2012-04-29 17:15:06 +00:00
|
|
|
|
2012-05-19 21:59:41 +00:00
|
|
|
;[model]
|
2012-04-29 17:15:06 +00:00
|
|
|
; example of DB configuration for SQLite
|
2012-05-19 21:59:41 +00:00
|
|
|
;class = zerobin_db
|
2012-08-25 22:49:11 +00:00
|
|
|
;[model_options]
|
2012-05-19 21:59:41 +00:00
|
|
|
;dsn = "sqlite:" PATH "data/db.sq3"
|
|
|
|
;usr = null
|
|
|
|
;pwd = null
|
|
|
|
;opt[12] = true ; PDO::ATTR_PERSISTENT
|
|
|
|
|