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 +4 -4
- data/lib/capistrano/nginx.rb +1 -1
- data/lib/capistrano/nginx/version.rb +2 -2
- data/templates/nginx.conf.erb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cd2f09a2acbfea4167a80f137e91199cbdda9f8
|
4
|
+
data.tar.gz: 9055e6d59553634fcb90734cd90e93c9b652dc23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88058f112ad2a24121786bebee80ad1e58f66fb12e623d7a792d113f7f4457a6d2e01db6e1be24398b0fda6d335ff3bc3afb75dcc5219adcc0ff33e769a05d4c
|
7
|
+
data.tar.gz: '0539201fc4de81f2dd393ecab942dc5e68ede5a25645cbaac57162f33d317f65efa161e9e1a33d5eb118bbdcec1a44aa552097e4dadb44838802a3cf7114d8c3'
|
data/lib/capistrano/nginx.rb
CHANGED
@@ -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, -> { "
|
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.
|
3
|
-
end
|
2
|
+
NGINX_VERSION = '3.0.2'
|
3
|
+
end
|
data/templates/nginx.conf.erb
CHANGED
@@ -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.
|
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:
|
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
|