webvac 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README +50 -51
  3. data/config.ru +1 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f072042f502ff2163b2a85bc05e4871530932f80
4
- data.tar.gz: 23ce8395c5c38e94aaf0064bedc438457327c3b1
3
+ metadata.gz: dd9d4c498fdf6c8497e3f3ac3799621488304111
4
+ data.tar.gz: 3f41f908d153a5aa880a098389f0bad4e6e95640
5
5
  SHA512:
6
- metadata.gz: b4ad9e21b79a3b41ce27869940fedce93706f54caba471003c78d1c63db881a643353e568038e1a7bf81ffecc006e55c92a6c93a7d14a159ea15f094da62aebb
7
- data.tar.gz: 0c994733991c2e50c4d5e1d88c022b0714a228a5cff063a4b68145446735335319c6853d07f4a15af1c946ff06f1f1cf91205ee537e7dadda64c89cf57c41c04
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
- $ sudo ed /etc/webvac.json
26
- a
27
- '{"server_path_prepend":"/where/uploads/get/put/in/the/filesystem"}'
28
- .
29
- wq
30
- $ sudo $EDITOR /etc/nginx/whatever
31
- [edit your nginx configuration to proxy requests for files to localhost:8891
32
- if the file doesn't exist]
33
- $ webvac-server -D
34
- $ find /where/uploads/get/put/in/the/filesystem -type f -print0 |
35
- xargs -0 -n30 -P8 webvac-sweep -v --
36
- [At this point, you should be able to rm the files in server_path_prepend to
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
- · The filename given in the $WEBVAC_CONFIG environment variable.
70
- · ./config/webvac.json
71
- · $HOME/.webvac.json
72
- · /etc/webvac.json
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
- // A Redis connection string, one that Redic will take:
80
- "redis_url": "redis://localhost:6379/0",
81
-
82
- // These two options are used to turn the request path into a filesystem path.
83
- // Watch this space, I might turn server_path_strip into an array.
84
-
85
- // The beginning of the path that the entire server sits under; that is,
86
- // what should be stripped from the front of the path. For Pleroma, users'
87
- // uploads are all under /media, so this works if you're serving uploads from
88
- // https://$domain/media/$file . You should probably not change this one for
89
- // now, as Rake routes depend on it.
90
- "server_path_strip": "/media",
91
- // The beginning of the path in the *filesystem* that corresponds to where the
92
- // files are kept. It is *incredibly* unlikely that you are using the same
93
- // path I am.
94
- "server_path_prepend": "/media/block/fse",
95
-
96
- // This is where the venti server is. (This might be an array at some point.)
97
- // This address is in dial(2) syntax, by the way, so $host:$port should be
98
- // written tcp!$host!$port.
99
- "venti_server": "localhost",
100
-
101
- // Where the vac and unvac binaries are kept:
102
- "plan9bin": "/opt/plan9/bin",
103
-
104
- // This is to make UGC work safely out of the box. Hopefully no browser is
105
- // dumb enough to run stuff inside <script> tags in something we're serving
106
- // as text/plain:
107
- "mime_substitutions": {
108
- "text/html": "text/plain"
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
@@ -41,6 +41,7 @@ module WebVac
41
41
  end
42
42
 
43
43
  class Root < R
44
+ auto_head
44
45
  get {
45
46
  "++++++++++++[>+++++++++<-]>.+++.---."
46
47
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webvac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete