desviar 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -10
- data/config/config.rb.example +1 -1
- data/lib/version.rb +2 -2
- metadata +2 -2
data/README.md
CHANGED
@@ -22,32 +22,33 @@ troubleshooting, you can store content in a file.
|
|
22
22
|
These directions have been tested on Ubuntu 12.10 and OpenSUSE 12.3.
|
23
23
|
|
24
24
|
##### From github #####
|
25
|
-
Clone this repo
|
25
|
+
Clone this repo and perform the following:
|
26
26
|
|
27
|
-
|
27
|
+
git clone https://github.com/instantlinux/desviar.git
|
28
|
+
cd desviar
|
29
|
+
cp config/config.rb.example config/config.rb
|
30
|
+
sudo apt-get install -y make libsqlite3-dev ruby-dev
|
28
31
|
# package names above may differ if not using Ubuntu
|
29
32
|
sudo gem install bundler
|
30
33
|
sudo bundle install
|
31
|
-
|
34
|
+
export RUBYLIB=`pwd`/lib
|
32
35
|
rackup -p 4567
|
33
36
|
|
34
|
-
Default credential of [app](http://localhost:4567) is user _desviar_, pw _password_. Consider moving the default database location from /dev/shm/desviar, and set its permissions to 0600.
|
35
|
-
|
36
37
|
##### From rubygems.org #####
|
37
38
|
Invoke the following:
|
38
39
|
|
39
|
-
sudo apt-get install make libsqlite3-dev ruby-dev
|
40
|
-
gem install desviar
|
40
|
+
sudo apt-get install -y make libsqlite3-dev ruby-dev
|
41
|
+
sudo gem install desviar
|
41
42
|
wget https://raw.github.com/instantlinux/desviar/master/config.ru
|
42
43
|
wget https://raw.github.com/instantlinux/desviar/master/config/config.rb.example
|
43
44
|
cp config.rb.example config.rb
|
44
45
|
export DESVIAR_CONFIG=`pwd`/config.rb
|
45
46
|
rackup -p 4567
|
46
47
|
|
47
|
-
You can modify config.ru to direct log output to a different file.
|
48
|
-
|
49
48
|
#### Usage ####
|
50
49
|
|
50
|
+
Default credential of [app](http://localhost:4567) is user _desviar_, pw _password_.
|
51
|
+
|
51
52
|
Commands:
|
52
53
|
* /create - generate a new pre-authenticated URI
|
53
54
|
* /desviar/xxx - retrieve pre-authenticated content (if a URISUFFIX was specified, it must be appended to xxx)
|
@@ -58,7 +59,12 @@ Commands:
|
|
58
59
|
Here's an example of creating a new link via _curl_:
|
59
60
|
|
60
61
|
curl --digest --user desviar:password http://localhost:4567/create \
|
61
|
-
--data "
|
62
|
+
--data "redir_uri=http://localhost/test&expiration=1800&captcha=1¬es=testing"
|
63
|
+
|
64
|
+
Security notes:
|
65
|
+
Consider moving the default database location from /dev/shm/desviar, and set its permissions to 0600.
|
66
|
+
|
67
|
+
You can modify config.ru to direct log output to a different file.
|
62
68
|
|
63
69
|
#### Features implemented ####
|
64
70
|
|
data/config/config.rb.example
CHANGED
@@ -46,7 +46,7 @@ $config = {
|
|
46
46
|
:msg_dbencrypt => "Method for encrypting local database, see optvals for list of values",
|
47
47
|
:dbencrypt => "aes-256-cbc",
|
48
48
|
|
49
|
-
:msg_cryptkey => "32-byte encryption key, or nil to generate random one at startup",
|
49
|
+
:msg_cryptkey => "32-byte encryption key, or nil to generate random one at startup; any data generated by a random key will be lost at shutdown",
|
50
50
|
:cryptkey => nil,
|
51
51
|
|
52
52
|
:msg_captchapub => "Public key for reCAPTCHA - see http://www.google.com/recaptcha/whyrecaptcha",
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: desviar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -207,7 +207,7 @@ files:
|
|
207
207
|
homepage: http://github.com/instantlinux/desviar
|
208
208
|
licenses: []
|
209
209
|
post_install_message: ! "------------------------------------------------------------------------------\nDesviar
|
210
|
-
v0.0.
|
210
|
+
v0.0.14\n\nTo configure, download from:\n https://raw.github.com/instantlinux/desviar/master/config/config.rb.example\ninto
|
211
211
|
a new file config.rb and export DESVIAR_CONFIG=<path>/config.rb.\n\nThanks for using
|
212
212
|
Desviar.\n------------------------------------------------------------------------------\n"
|
213
213
|
rdoc_options: []
|