2012-04-30 01:15:06 +08: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-20 05:59:41 +08:00
|
|
|
[main]
|
|
|
|
; enable or disable discussions
|
|
|
|
opendiscussion = true
|
2012-04-30 01:15:06 +08:00
|
|
|
|
2012-05-01 04:58:08 +08:00
|
|
|
; size limit per paste or comment in bytes
|
2012-05-20 05:59:41 +08:00
|
|
|
sizelimit = 2097152
|
|
|
|
|
|
|
|
[traffic]
|
|
|
|
; time limit between calls from the same IP address in seconds
|
|
|
|
limit = 10
|
|
|
|
dir = PATH "data"
|
2012-05-01 04:58:08 +08:00
|
|
|
|
2012-05-20 05:59:41 +08:00
|
|
|
[model]
|
2012-04-30 01:15:06 +08:00
|
|
|
; name of data model class to load and directory for storage
|
|
|
|
; the default model "zerobin_data" stores everything in the filesystem
|
2012-05-20 05:59:41 +08:00
|
|
|
class = zerobin_data
|
|
|
|
[model_options]
|
|
|
|
dir = PATH "data"
|
2012-04-30 01:15:06 +08:00
|
|
|
|
2012-05-20 05:59:41 +08:00
|
|
|
;[model]
|
2012-04-30 01:15:06 +08:00
|
|
|
; example of DB configuration for MySQL
|
2012-05-20 05:59:41 +08: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-30 01:15:06 +08:00
|
|
|
|
2012-05-20 05:59:41 +08:00
|
|
|
;[model]
|
2012-04-30 01:15:06 +08:00
|
|
|
; example of DB configuration for SQLite
|
2012-05-20 05:59:41 +08:00
|
|
|
;class = zerobin_db
|
2012-08-26 06:49:11 +08:00
|
|
|
;[model_options]
|
2012-05-20 05:59:41 +08:00
|
|
|
;dsn = "sqlite:" PATH "data/db.sq3"
|
|
|
|
;usr = null
|
|
|
|
;pwd = null
|
|
|
|
;opt[12] = true ; PDO::ATTR_PERSISTENT
|
|
|
|
|