capistrano-generals 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/generals/version.rb +1 -1
- data/lib/capistrano/tasks/defaults.rake +1 -1
- data/lib/generators/capistrano/generals/templates/nginx.conf.erb +9 -5
- data/lib/generators/capistrano/generals/templates/puma.rb.erb +1 -0
- data/lib/generators/capistrano/generals/templates/puma_init.sh.erb +0 -6
- 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: 6958d037b48a6f96e67815862bc0797b377de9b5
|
4
|
+
data.tar.gz: 087d7b7ecaf011a90159db4e624d6f35fa413683
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad8a6ec7a456390e7d692fd9a952871c00534bc464b49e5d8fb6fd6562d13276407ff4be7dab55d2b3faca19d3507ea737a2a6165f479aeeb3621563a0be322
|
7
|
+
data.tar.gz: a57801044b81bb0d5c217b776a2003ee94db54d87f17af66d13611e61d01c074ebcdcfabf8e44f01d57da0fef64d4fddf50b398e3b71b72c5f5a1cd7b5065d85
|
@@ -20,7 +20,7 @@ namespace :load do
|
|
20
20
|
# Nginx ssl settings
|
21
21
|
set :nginx_use_ssl, false
|
22
22
|
set :nginx_ssl_stapling, true
|
23
|
-
set :nginx_ssl_ciphers, '
|
23
|
+
set :nginx_ssl_ciphers, 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH;'
|
24
24
|
set :nginx_ssl_protocols, 'TLSv1 TLSv1.1 TLSv1.2'
|
25
25
|
set :nginx_ssl_session_cache, 'shared:SSL:10m'
|
26
26
|
|
@@ -62,16 +62,20 @@ server {
|
|
62
62
|
ssl_dhparam <%= remote_ssl_dhparam_file %>;
|
63
63
|
<% end %>
|
64
64
|
|
65
|
-
<% else %>
|
66
|
-
listen 80;
|
67
|
-
<% end %>
|
68
|
-
|
69
65
|
<% if fetch(:ngingx_strict_transport_security) %>
|
66
|
+
<% if fetch(:nginx_respond_to_subdomains) %>
|
67
|
+
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
|
68
|
+
<% else %>
|
70
69
|
add_header Strict-Transport-Security max-age=63072000;
|
70
|
+
<% end %>
|
71
71
|
add_header X-Content-Type-Options nosniff;
|
72
72
|
<% end %>
|
73
|
-
add_header X-Frame-Options <%= fetch(:nginx_x_frame_options) %>;
|
74
73
|
|
74
|
+
<% else %>
|
75
|
+
listen 80;
|
76
|
+
<% end %>
|
77
|
+
|
78
|
+
add_header X-Frame-Options <%= fetch(:nginx_x_frame_options) %>;
|
75
79
|
|
76
80
|
<% # FILE HANDLING %>
|
77
81
|
<% if fetch(:use_unicorn) %>
|
@@ -20,16 +20,10 @@ CMD="export HOME; true "${HOME:=$(getent passwd "$AS_USER" | cut -d: -f6;)}"; cd
|
|
20
20
|
|
21
21
|
set -u
|
22
22
|
|
23
|
-
OLD_PIN="$PID.oldbin"
|
24
|
-
|
25
23
|
sig () {
|
26
24
|
test -s "$PID" && kill -$1 `cat $PID`
|
27
25
|
}
|
28
26
|
|
29
|
-
oldsig () {
|
30
|
-
test -s $OLD_PIN && kill -$1 `cat $OLD_PIN`
|
31
|
-
}
|
32
|
-
|
33
27
|
run () {
|
34
28
|
if [ "$(id -un)" = "$AS_USER" ]; then
|
35
29
|
eval $1
|