prun-ops 0.3.3 → 0.3.4
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/lib/capistrano/config/nginx.rake +6 -2
- data/lib/prun-ops/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c95ddf991d7158d0377b86777ba2da36bb59dd152ffcaed325a6dec1076a8ab9
|
4
|
+
data.tar.gz: cfa8ba60f3218caa35dfc18d97959c5b5a08676a2293bbaa75b1a2548d00b8e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02fb72ce346606fa541cbfb616932bd5fa31c52d656fcbb8112cc6d05b58fdfc6c149fb7470766d8814218503ebc2acabf725d34406f32c9acad59d78c3a8faf
|
7
|
+
data.tar.gz: d99c906b2724993def5752bbb7619d5ca93419fa304d92b80891e48545c2f53881ceba632f1d6819506aa59a4e80288e8ea173fb0763270b131e265239bc0f2d
|
@@ -13,8 +13,8 @@ namespace :nginx do
|
|
13
13
|
on roles(:web, :api) do |host|
|
14
14
|
run_locally do
|
15
15
|
run_in host, <<-EOBLOCK
|
16
|
-
sudo
|
17
|
-
sudo
|
16
|
+
sudo apt update
|
17
|
+
sudo apt install certbot python3-certbot-nginx -y
|
18
18
|
sudo certbot --nginx -m admin@#{host.hostname} --non-interactive --agree-tos --domains #{host.hostname}
|
19
19
|
EOBLOCK
|
20
20
|
end
|
@@ -23,6 +23,10 @@ namespace :nginx do
|
|
23
23
|
|
24
24
|
task :ssl do
|
25
25
|
on roles(:web, :api) do |host|
|
26
|
+
execute <<-EOBLOCK
|
27
|
+
cd /etc/ssl/certs
|
28
|
+
openssl dhparam -out dhparam.pem 4096
|
29
|
+
EOBLOCK
|
26
30
|
template 'vhost_ssl.conf', '/etc/nginx/conf.d/vhost.conf'
|
27
31
|
invoke 'nginx:restart'
|
28
32
|
end
|
data/lib/prun-ops/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prun-ops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Lebrijo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|