capistrano3-nginx 3.0.1 → 3.0.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: 864ebc0253d53d109d31c04c3698e65044de2b97
4
- data.tar.gz: cf416bd5840bd0f1cf9b8e82cc8f8f6fc53b3295
3
+ metadata.gz: 1cd2f09a2acbfea4167a80f137e91199cbdda9f8
4
+ data.tar.gz: 9055e6d59553634fcb90734cd90e93c9b652dc23
5
5
  SHA512:
6
- metadata.gz: ff689631a34cd2ddbc5dc8928a2d4bbce9941fe1fc5371a14a0685c7a41a5bf486704a46f8e6ca31906c6d10e8733e610c50428fe98e0558bb364b4753fcf41d
7
- data.tar.gz: fc3609227c177ce21947a2e17fe80c0df0caa91a1ffaf4e94375163abdfcabd2949916377428495d69c5b3384b6f378340d3a1327c831404d8712609677b03f8
6
+ metadata.gz: 88058f112ad2a24121786bebee80ad1e58f66fb12e623d7a792d113f7f4457a6d2e01db6e1be24398b0fda6d335ff3bc3afb75dcc5219adcc0ff33e769a05d4c
7
+ data.tar.gz: '0539201fc4de81f2dd393ecab942dc5e68ede5a25645cbaac57162f33d317f65efa161e9e1a33d5eb118bbdcec1a44aa552097e4dadb44838802a3cf7114d8c3'
@@ -7,7 +7,7 @@ module Capistrano
7
7
  set :nginx_sudo_tasks, -> { ['nginx:start', 'nginx:stop', 'nginx:restart', 'nginx:reload', 'nginx:configtest', 'nginx:site:add', 'nginx:site:disable', 'nginx:site:enable', 'nginx:site:remove' ] }
8
8
  set :nginx_log_path, -> { "#{shared_path}/log" }
9
9
  set :nginx_service_path, -> { 'service nginx' }
10
- set :nginx_static_dir, -> { "#{shared_path}/public/assets" }
10
+ set :nginx_static_dir, -> { "public" }
11
11
  set :nginx_application_name, -> { fetch(:application) }
12
12
  set :nginx_sites_enabled_dir, -> { "/etc/nginx/sites-enabled" }
13
13
  set :nginx_sites_available_dir, -> { "/etc/nginx/sites-available" }
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- NGINX_VERSION = '3.0.1'
3
- end
2
+ NGINX_VERSION = '3.0.2'
3
+ end
@@ -54,6 +54,11 @@ server {
54
54
  client_max_body_size 4G;
55
55
  keepalive_timeout 10;
56
56
 
57
+ <% if fetch(:nginx_auth_basic_user_file) %>
58
+ auth_basic "Restricted Area";
59
+ auth_basic_user_file <%= fetch(:nginx_auth_basic_user_file) %>;
60
+ <% end %>
61
+
57
62
  <% if fetch(:app_server) && (fetch(:app_server_socket) || fetch(:app_server_port))%>
58
63
  location ^~ /assets/ {
59
64
  gzip_static on;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-nginx
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Ignacio Donoso
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-17 00:00:00.000000000 Z
12
+ date: 2019-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.6.14
81
+ rubygems_version: 2.6.14.4
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: Adds suuport to nginx for Capistrano 3.x