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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce4edad6fe2a55d648cc2d1cd94efb7990d316ba
4
- data.tar.gz: 4f583f9e7c648daafc2d38b57af1f82b5d2e409a
3
+ metadata.gz: 6958d037b48a6f96e67815862bc0797b377de9b5
4
+ data.tar.gz: 087d7b7ecaf011a90159db4e624d6f35fa413683
5
5
  SHA512:
6
- metadata.gz: c4996378b3e7964dae3ca0d761e29d6f53e6cc27cfee034de5d8e3bf75c19cc6bae6cb81b86c50913d1c457b51a1811dfd0d2b8fc5257ead6f7933b368749551
7
- data.tar.gz: 73628d76d1b34286d780fcb4ac5be17504fd9f2a14082c78a8d2dbd08d8c99b8e0b59fb54ed9e6f4a143c9dcc161cbc6a121b879e5cd9f78b8753384829fe634
6
+ metadata.gz: 0ad8a6ec7a456390e7d692fd9a952871c00534bc464b49e5d8fb6fd6562d13276407ff4be7dab55d2b3faca19d3507ea737a2a6165f479aeeb3621563a0be322
7
+ data.tar.gz: a57801044b81bb0d5c217b776a2003ee94db54d87f17af66d13611e61d01c074ebcdcfabf8e44f01d57da0fef64d4fddf50b398e3b71b72c5f5a1cd7b5065d85
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Generals
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -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, 'AES128+EECDH:AES128+EDH:!aNULL'
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) %>
@@ -4,6 +4,7 @@ bind "unix:///tmp/puma.<%= fetch(:app_config_name) %>.sock"
4
4
 
5
5
  threads <%= fetch(:puma_min_threads) %>, <%= fetch(:puma_max_threads) %>
6
6
  workers <%= fetch(:puma_workers) %>
7
+ pidfile "<%= fetch(:puma_pid) %>"
7
8
 
8
9
  <% if fetch(:puma_preload_app) %>
9
10
  preload_app!
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-generals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stef Schenkelaars