summarylogtreecommitdiffstats
path: root/config.patch
diff options
context:
space:
mode:
authorfordprefect2018-08-19 14:12:00 +0200
committerfordprefect2018-08-19 14:12:00 +0200
commit6b2cb6bc7bb4b23b05bb95261c0a72d41a431917 (patch)
tree227ec2634eacfc4cddcc0e80a60010d228397381 /config.patch
parent96dcf680ac0af67a0e2076e45d503e5cfa645405 (diff)
downloadaur-6b2cb6bc7bb4b23b05bb95261c0a72d41a431917.tar.gz
1.2.1
Diffstat (limited to 'config.patch')
-rw-r--r--config.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/config.patch b/config.patch
new file mode 100644
index 000000000000..2dd9c8a64b16
--- /dev/null
+++ b/config.patch
@@ -0,0 +1,39 @@
+diff --git a/cfg/conf.sample.php b/cfg/conf.sample.php
+index 28dae77..8028191 100644
+--- a/cfg/conf.sample.php
++++ b/cfg/conf.sample.php
+@@ -111,7 +111,7 @@ limit = 10
+ ; header = "X_FORWARDED_FOR"
+
+ ; directory to store the traffic limits in
+-dir = PATH "data"
++dir = "/var/lib/privatebin/trafficlimits"
+
+ [purge]
+ ; minimum time limit between two purgings of expired pastes, it is only
+@@ -125,14 +125,14 @@ limit = 300
+ batchsize = 10
+
+ ; directory to store the purge limit in
+-dir = PATH "data"
++dir = "/var/lib/privatebin/purgelimit"
+
+ [model]
+ ; name of data model class to load and directory for storage
+ ; the default model "Filesystem" stores everything in the filesystem
+ class = Filesystem
+ [model_options]
+-dir = PATH "data"
++dir = "/var/lib/privatebin/model"
+
+ ;[model]
+ ; example of DB configuration for MySQL
+@@ -148,7 +148,7 @@ dir = PATH "data"
+ ; example of DB configuration for SQLite
+ ;class = Database
+ ;[model_options]
+-;dsn = "sqlite:" PATH "data/db.sq3"
++;dsn = "sqlite:" "/var/lib/privatebin/data/db.sq3"
+ ;usr = null
+ ;pwd = null
+ ;opt[12] = true ; PDO::ATTR_PERSISTENT