webvac 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +50 -51
- data/config.ru +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd9d4c498fdf6c8497e3f3ac3799621488304111
|
4
|
+
data.tar.gz: 3f41f908d153a5aa880a098389f0bad4e6e95640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1359633e7236896e71eecd91bd0fdc04d0941b3868292979d42a6dfd5dbf58d29aa7ca827bb0c9ef56b8d84f7b6087a4e53f4f70826f6fdff445925c65d89350
|
7
|
+
data.tar.gz: bf08f77ec60e7b61eea7855de97139b3e180d2447e4bb863ef768ad93d12b00f1f71409bd1d3a6760c617768b2f4115ba3931b8ce5bd8e6b865e381be132a109
|
data/README
CHANGED
@@ -20,21 +20,20 @@ general as a result.
|
|
20
20
|
|
21
21
|
= Quick Start
|
22
22
|
|
23
|
-
[Check that your venti and Redis servers are operational.]
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
$
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
start serving them out of venti. Big ones are slow for now.
|
23
|
+
[Check that your venti and Redis servers are operational.]
|
24
|
+
$ sudo ed /etc/webvac.json
|
25
|
+
a
|
26
|
+
'{"server_path_prepend":"/where/uploads/get/put/in/the/filesystem"}'
|
27
|
+
.
|
28
|
+
wq
|
29
|
+
$ sudo $EDITOR /etc/nginx/whatever
|
30
|
+
[edit your nginx configuration to proxy requests for files to localhost:8891
|
31
|
+
if the file doesn't exist]
|
32
|
+
$ webvac-server -D
|
33
|
+
$ find /where/uploads/get/put/in/the/filesystem -type f -print0 |
|
34
|
+
xargs -0 -n30 -P8 webvac-sweep -v --
|
35
|
+
[At this point, you should be able to rm the files in server_path_prepend
|
36
|
+
to start serving them out of venti. Big ones are slow for now.]
|
38
37
|
|
39
38
|
= Mise en place
|
40
39
|
|
@@ -66,48 +65,48 @@ The nginx config I used to test is in doc/examples.
|
|
66
65
|
You will need to create a JSON file that specifies the configuration.
|
67
66
|
The first readable file from the following list is used:
|
68
67
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
68
|
+
* The filename given in the $WEBVAC_CONFIG environment variable.
|
69
|
+
* ./config/webvac.json
|
70
|
+
* $HOME/.webvac.json
|
71
|
+
* /etc/webvac.json
|
73
72
|
|
74
73
|
Here is an annotated list of configuration options, all of which start
|
75
74
|
with their default values. You will almost certainly need to change
|
76
75
|
server_path_prepend.
|
77
76
|
|
78
|
-
{
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
77
|
+
{
|
78
|
+
// A Redis connection string, one that Redic will take:
|
79
|
+
"redis_url": "redis://localhost:6379/0",
|
80
|
+
|
81
|
+
// These two options are used to turn the request path into a filesystem
|
82
|
+
// path. Watch this space, I might turn server_path_strip into an array.
|
83
|
+
|
84
|
+
// The beginning of the path that the entire server sits under; that is,
|
85
|
+
// what should be stripped from the front of the path. For Pleroma, users'
|
86
|
+
// uploads are all under /media, so this works if you're serving uploads from
|
87
|
+
// https://$domain/media/$file . You should probably not change this one for
|
88
|
+
// now, as Rake routes depend on it.
|
89
|
+
"server_path_strip": "/media",
|
90
|
+
// The beginning of the path in the *filesystem* that corresponds to where
|
91
|
+
// the files are kept. It is *incredibly* unlikely that you are using the
|
92
|
+
// same path I am.
|
93
|
+
"server_path_prepend": "/media/block/fse",
|
94
|
+
|
95
|
+
// This is where the venti server is. (This might be an array at some
|
96
|
+
// point.) This address is in dial(2) syntax, by the way, so $host:$port
|
97
|
+
// should be written "tcp!$host!$port".
|
98
|
+
"venti_server": "localhost",
|
99
|
+
|
100
|
+
// Where the vac and unvac binaries are kept:
|
101
|
+
"plan9bin": "/opt/plan9/bin",
|
102
|
+
|
103
|
+
// This is to make UGC work safely out of the box. Hopefully no browser is
|
104
|
+
// dumb enough to run stuff inside <script> tags in something we're serving
|
105
|
+
// as text/plain:
|
106
|
+
"mime_substitutions": {
|
107
|
+
"text/html": "text/plain"
|
108
|
+
}
|
109
109
|
}
|
110
|
-
}
|
111
110
|
|
112
111
|
= Usage
|
113
112
|
|
data/config.ru
CHANGED