Skip to content

Commit bb97649

Browse files
committed
Fix config for new data dir
1 parent bcfccb0 commit bb97649

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ clean:
1414
docker rmi $(IMAGE_NAME):$(TAG)
1515

1616
run:
17-
docker run --rm -t -i $(IMAGE_NAME):$(TAG)
17+
docker run --rm -t -i -P $(IMAGE_NAME):$(TAG)

conf.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
5min = 300
101101
10min = 600
102102
1hour = 3600
103+
8hour = 28800
103104
1day = 86400
104105
1week = 604800
105106

@@ -116,10 +117,10 @@
116117

117118
; (optional) if your website runs behind a reverse proxy or load balancer,
118119
; set the HTTP header containing the visitors IP address, i.e. X_FORWARDED_FOR
119-
; header = "X_FORWARDED_FOR"
120+
header = "X-FORWARDED-FOR"
120121

121122
; directory to store the traffic limits in
122-
dir = PATH "data"
123+
dir = PATH "/data"
123124

124125
[purge]
125126
; minimum time limit between two purgings of expired pastes, it is only
@@ -133,14 +134,14 @@
133134
batchsize = 10
134135

135136
; directory to store the purge limit in
136-
dir = PATH "data"
137+
dir = PATH "/data"
137138

138139
[model]
139140
; name of data model class to load and directory for storage
140141
; the default model "Filesystem" stores everything in the filesystem
141142
class = Filesystem
142143
[model_options]
143-
dir = PATH "data"
144+
dir = PATH "/data"
144145

145146
;[model]
146147
; example of DB configuration for MySQL

0 commit comments

Comments
 (0)