capistrano-lets-encrypt 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/README.md +35 -39
- data/capistrano-lets-encrypt.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90da1a49714e482b35e657c3224aec74936e259a
|
4
|
+
data.tar.gz: 328392b3bec296ed09b6a37444d04c378dbf760a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9814cac7056f473ec0f840277ad14b8387a9156743a1ad8b87c26df2dad5cd691f8318666ac40fcf6278631887f15a337c95b6f768563e911f8a6484acd0e183
|
7
|
+
data.tar.gz: 2c9c2fdcba8fc3a44c0406841d3d95b220111e47f422cb69e18fd3856d6662366f42278d84a1a4bb2d2debad438dc3cc77455f60525e8bebabb05aa3a4a3e3f8
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
Let's encrypt support for Capistrano 3.x
|
4
4
|
|
5
|
+
Thanks to @unixcharles and @zealot128 for their libraries,
|
6
|
+
[acme-client](https://github.com/unixcharles/acme-client/) and
|
7
|
+
[letsencrypt-cli](https://github.com/zealot128/ruby-letsencrypt-cli) to manage
|
8
|
+
part of the workflow to work with Let's encrypt. This library use both to create
|
9
|
+
a series of capistrano tasks that should help you create certs on your projects
|
10
|
+
deployed with capistrano
|
11
|
+
|
5
12
|
## Installation
|
6
13
|
|
7
14
|
Add this line to your application's Gemfile:
|
@@ -28,58 +35,47 @@ require 'capistrano/lets-encrypt'
|
|
28
35
|
You will get the following tasks
|
29
36
|
|
30
37
|
```ruby
|
31
|
-
cap
|
32
|
-
cap
|
33
|
-
cap
|
38
|
+
cap lets_encrypt:register # Register a Let's encrypt account
|
39
|
+
cap lets_encrypt:check_certificate # Check for validity of certificates
|
40
|
+
cap lets_encrypt:authorize # Authorize a domain using ACME protocol
|
41
|
+
cap lets_encrypt:cert # Create certificates and private keys
|
34
42
|
```
|
35
43
|
|
36
44
|
Configurable options (copy into deploy.rb), shown here with examples:
|
37
45
|
|
38
46
|
```ruby
|
39
|
-
#
|
40
|
-
|
41
|
-
set :delayed_job_workers, 2
|
47
|
+
# default value: :web
|
48
|
+
set :lets_encrypt_roles, :lets_encrypt
|
42
49
|
|
43
|
-
#
|
44
|
-
|
45
|
-
# For example: reports/delayed_job.0 instead of just delayed_job.0
|
46
|
-
set :delayed_job_prefix, :reports
|
50
|
+
# default value: false
|
51
|
+
set :lets_encrypt_test, true
|
47
52
|
|
48
|
-
# Delayed_job queue or queues
|
49
|
-
# Set the --queue or --queues option to work from a particular queue.
|
50
53
|
# default value: nil
|
51
|
-
set :
|
54
|
+
set :lets_encrypt_email, nil
|
52
55
|
|
53
|
-
# Specify different pools
|
54
|
-
# You can use this option multiple times to start different numbers of workers for different queues.
|
55
56
|
# default value: nil
|
56
|
-
set :
|
57
|
-
:mailer => 2,
|
58
|
-
:tracking => 1,
|
59
|
-
:* => 2
|
60
|
-
}
|
61
|
-
|
62
|
-
# Set the roles where the delayed_job process should be started
|
63
|
-
# default value: :app
|
64
|
-
set :delayed_job_roles, [:app, :background]
|
65
|
-
|
66
|
-
# Set the location of the delayed_job executable
|
67
|
-
# Can be relative to the release_path or absolute
|
68
|
-
# default value 'bin'
|
69
|
-
set :delayed_job_bin_path, 'script' # for rails 3.x
|
70
|
-
|
71
|
-
### Set the location of the delayed_job logfile
|
72
|
-
set :delayed_log_dir, 'path_to_logfile'
|
73
|
-
```
|
57
|
+
set :lets_encrypt_domains, nil
|
74
58
|
|
75
|
-
|
59
|
+
# default value: "#{release_path}/public"
|
60
|
+
set :lets_encrypt_challenge_public_path, "#{release_path}/public"
|
76
61
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
62
|
+
# default value: "#{shared_path}/ssl/certs"
|
63
|
+
set :lets_encrypt_output_path, "#{shared_path}/ssl/certs"
|
64
|
+
|
65
|
+
# default value: "#{fetch(:lets_encrypt_email)}.account_key.pem"
|
66
|
+
set :lets_encrypt_account_key, "#{fetch(:lets_encrypt_email)}.account_key.pem"
|
67
|
+
|
68
|
+
# default value: 30
|
69
|
+
set :lets_encrypt_days_valid, 30
|
70
|
+
|
71
|
+
# default value: "~/certs"
|
72
|
+
set :lets_encrypt_local_output_path, "~/certs"
|
81
73
|
```
|
82
74
|
|
75
|
+
## Requirements
|
76
|
+
|
77
|
+
This tool needs Ruby >= 2.1 (as the dependency acme-client needs that because of use of keyword arguments).
|
78
|
+
|
83
79
|
## Contributing
|
84
80
|
|
85
81
|
1. Fork it
|
@@ -90,7 +86,7 @@ end
|
|
90
86
|
|
91
87
|
## Credits
|
92
88
|
|
93
|
-
Thank you [contributors](https://github.com/platanus/
|
89
|
+
Thank you [contributors](https://github.com/platanus/capistran-lets-encrypt/graphs/contributors)!
|
94
90
|
|
95
91
|
<img src="http://platan.us/gravatar_with_text.png" alt="Platanus" width="250"/>
|
96
92
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano-lets-encrypt"
|
7
|
-
spec.version = "0.
|
7
|
+
spec.version = "0.2.0"
|
8
8
|
spec.authors = ["Juan Ignacio Donoso"]
|
9
9
|
spec.email = ["juan.ignacio@platan.us"]
|
10
10
|
spec.summary = %q{Adds support for let's encrypt to Capistrano 3.x}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-lets-encrypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Ignacio Donoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|