capistrano-atlas 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/atlas/version.rb +1 -1
- data/lib/capistrano/tasks/defaults.rake +2 -1
- data/lib/capistrano/tasks/ssl.rake +2 -2
- 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: '0286afa79678deee58735bfcf93ea184e9a78664'
|
4
|
+
data.tar.gz: 53bbe3cb4446f2372f44f6a332201c88b4fe286c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7c58e1d8962bad5f67230fa7a627eeebaab0d9c93d03e4e07ba70f5ae8b0aa9266afac6aeeac3dccf81820e6f83fa3a23cca6b9e82a86bd67d3cd03a61e0a08
|
7
|
+
data.tar.gz: 5d4d05525aacffddff55aa9ddf1366577eb1b4886631fd6083f9f7a505cbe3820210c04f84f961ef14ec6f2b94539a46db1ce89ee5baf8c94172e3c5898c0ad4
|
@@ -54,7 +54,8 @@ namespace :load do
|
|
54
54
|
set :atlas_nginx_force_https, false
|
55
55
|
set :atlas_nginx_redirect_hosts, {}
|
56
56
|
|
57
|
-
ask :
|
57
|
+
ask :atlas_lets_encrypt_email
|
58
|
+
ask :atlas_lets_encrypt_domain_name
|
58
59
|
|
59
60
|
set :atlas_puma_threads, "0, 8"
|
60
61
|
set :atlas_puma_workers, 2
|
@@ -10,9 +10,9 @@ namespace :atlas do
|
|
10
10
|
privileged_on roles(:web) do
|
11
11
|
unless test("sudo [ -f /etc/ssl/#{application_basename}.crt ]")
|
12
12
|
execute :sudo, "mkdir -p /opt/certbot"
|
13
|
-
execute :sudo, "cd /opt/certbot
|
13
|
+
execute :sudo, "cd /opt/certbot/ && wget https://dl.eff.org/certbot-auto && chmod a+x certbot-auto"
|
14
14
|
execute :sudo, "/opt/certbot/certbot-auto certonly --agree-tos "\
|
15
|
-
"--email #{
|
15
|
+
"--email #{fetch(:atlas_lets_encrypt_email)} --webroot "\
|
16
16
|
"-w #{current_path}/public "\
|
17
17
|
"-d #{fetch(:atlas_lets_encrypt_domain_name)}"
|
18
18
|
end
|