prun-ops 0.3.0 → 0.3.1
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/README.md +2 -2
- data/lib/capistrano/config/nginx.rake +3 -6
- data/lib/capistrano/config/postgres.rake +1 -1
- data/lib/capistrano/config/templates/vhost.conf.erb +6 -0
- data/lib/capistrano/config/templates/vhost_ssl.conf.erb +7 -0
- data/lib/capistrano/config/ubuntu.rake +1 -1
- 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: 18f2c5330be90923eaf33001d28259a793106d1f6fb29422e63a62cc542c51fd
|
|
4
|
+
data.tar.gz: 67c617c200371c58e64467ea47edebdcd62f7cddde771d9b64f210ce2d00723e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5a71ab8a859f032d2c1a66221b57ecb432f86e8c9b32efb1d0fe183528d46f1b488c8dedf51d4b0f23e379000814990687dacf2891b2b82e0b511d35e38c99e
|
|
7
|
+
data.tar.gz: d6b9fef0e7589eeca85c0ffd4e952c71fc1c0964dbbfcea1bb79751297da844be127a94e974b0cb732ae18e56233dde9dfff4bab75dfef13bb8716f69c3ea8a0
|
data/README.md
CHANGED
|
@@ -84,8 +84,8 @@ Secondary tasks:
|
|
|
84
84
|
- `cap [stg] redis:install` install redis server
|
|
85
85
|
- `cap [stg] app:prepare`(DEPRECATED) create init scripts
|
|
86
86
|
- `cap [stg] app:db_prepare`(DEPRECATED) database first load
|
|
87
|
-
- `cap [stg] nginx:cert` create SSL certificates with [Let's Encrypt](https://letsencrypt.org/)
|
|
88
|
-
- `cap [stg] nginx:ssl` configure nginx with SSL certificates
|
|
87
|
+
- `cap [stg] nginx:cert` create SSL certificates with [Let's Encrypt](https://letsencrypt.org/) and confiture nginx
|
|
88
|
+
- `cap [stg] nginx:ssl`(DEPRECATED) configure nginx with SSL certificates
|
|
89
89
|
|
|
90
90
|
Considerations:
|
|
91
91
|
-
|
|
@@ -13,12 +13,9 @@ 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
|
|
18
|
-
sudo
|
|
19
|
-
sudo mkdir /var/www/#{fetch :application}/current/public/.well-known
|
|
20
|
-
sudo certbot-auto certonly -a webroot --webroot-path=/var/www/#{fetch :application}/current/public -d #{host.hostname}
|
|
21
|
-
sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
|
|
16
|
+
sudo snap install --classic certbot
|
|
17
|
+
sudo ln -s /snap/bin/certbot /usr/bin/certbot
|
|
18
|
+
sudo certbot --nginx -m admin@#{host.hostname} --non-interactive --agree-tos --domains #{host.hostname}
|
|
22
19
|
EOBLOCK
|
|
23
20
|
end
|
|
24
21
|
end
|
|
@@ -26,7 +26,7 @@ namespace :postgres do
|
|
|
26
26
|
sudo sed -i "s/#listen_addresses = 'localhost'/listen_addresses = '*'/" /etc/postgresql/#{version}/main/postgresql.conf
|
|
27
27
|
sudo sed -i "s/local all all peer/local all all md5/" /etc/postgresql/#{version}/main/pg_hba.conf
|
|
28
28
|
sudo sed -i "s/host all all 127.0.0.1/32 md5/host all all all md5/" /etc/postgresql/#{version}/main/pg_hba.conf
|
|
29
|
-
sudo sed -i "s/ssl =
|
|
29
|
+
sudo sed -i "s/ssl = on/ssl = off/" /etc/postgresql/#{version}/main/postgresql.conf
|
|
30
30
|
sudo service postgresql restart
|
|
31
31
|
EOBLOCK
|
|
32
32
|
|
|
@@ -35,6 +35,13 @@ server {
|
|
|
35
35
|
stub_status on;
|
|
36
36
|
allow all;
|
|
37
37
|
}
|
|
38
|
+
location /cable {
|
|
39
|
+
proxy_pass http://0.0.0.0:3000;
|
|
40
|
+
proxy_http_version 1.1;
|
|
41
|
+
proxy_set_header Upgrade $http_upgrade;
|
|
42
|
+
proxy_set_header Connection "Upgrade";
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
location ~ /.well-known {
|
|
39
46
|
allow all;
|
|
40
47
|
}
|
|
@@ -8,7 +8,7 @@ namespace :ubuntu do
|
|
|
8
8
|
#{apt_nointeractive} libssl-dev libreadline-dev libgdbm-dev openssl
|
|
9
9
|
#{apt_nointeractive} libreadline6-dev libyaml-dev sqlite3 autoconf libgdbm-dev
|
|
10
10
|
#{apt_nointeractive} libcurl4 libcurl3-gnutls libcurl4-openssl-dev
|
|
11
|
-
#{apt_nointeractive} libncurses5-dev automake libtool bison pkg-config libffi-dev
|
|
11
|
+
#{apt_nointeractive} libncurses5-dev automake libtool bison pkg-config libffi-dev libvips
|
|
12
12
|
#{apt_nointeractive} software-properties-common gnupg2
|
|
13
13
|
EOBLOCK
|
|
14
14
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juan Lebrijo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|