capistrano-nginx-unicorn 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmYwNTI4YjA3ZjEzYzBmYTIyM2Y4NDAyYTMzNGQ5MTkyY2JhODZhMw==
4
+ NzNmNWY5ZGViYmU4NGEyYjFiODQ0NTM1NjdmN2JhMWRkZGQ3MGQ4MA==
5
5
  data.tar.gz: !binary |-
6
- M2NkYzhjMGNjOTUxZjZhYjdhNDRiMDNiN2E0YWE5Nzk0ZDQ5NWM2ZA==
6
+ ZWRmOGM1OTRjZTlhYTA2ZjFkNmViMmUwZjZjYmFkOWYxMWMyOWJkZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjZkZjg4NWI5OTY5MjM0ZjYxNDViODkwNzEyY2RmMWFmNzBhZjMzZmNhMjNj
10
- ZTEyOWM4YWNhMDAyMmQ3NTEwOWVlMGMzNmMwNWY4NjAyOGJiYTVlMzdhM2I4
11
- NzU0ZTQ4N2E1M2Q3ZWRmMTUwMzMwMzI5NWU0MDkyNGI3ODdkY2M=
9
+ MDRjODUzOTcyYzM4MjBjNjVhMDA5ZThlMjYyNWM0ZTViMWQzYTg0ZTgxZGE4
10
+ ZWI4NTg4N2E2MGMxNWQ1MjAyN2I5NjYyZTUyZjgwZDg4MjQxM2VlZGQ3Yjc2
11
+ YTM3YjNlNjUxMmExMzZiYzUwZTZhNTViMjc1YWE0YjgxYWY4NzE=
12
12
  data.tar.gz: !binary |-
13
- Mzc2MTc0MWQ1NWEwZWFlN2VkMDg2OTAwMTY3MGRjNTQ5MTQ5Njg4YzM1ZDgw
14
- MmFjOTM0ODE5OGEwMDU2ZWMxMjZiZDdiZDkwZjZjMzdkMzllMjBiNTM0YTRj
15
- Njk5NGRjMzZkNzI3ODEzZTJhODgyZGZlNTgyMmIwNzEwNjdkMzE=
13
+ MmQ3MTM4NzhkMmEwZmM5NjZlNWExYzhlMzRkNWQ2ZmMyM2M0MmNjZWI2YjA3
14
+ NzM4ZWQ1NWFmOTJjMzFlZTg5ZWQyMDIyN2IxZDFhMTM5MjEwNjM5YTRlY2Mz
15
+ ZWVlOWJhMWY3Y2M3ZjJmNjFhMTZlYTJiNTdhZTU3OGRhYTRkNDc=
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module NginxUnicorn
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -19,6 +19,12 @@ server {
19
19
  listen 80;
20
20
  <% end %>
21
21
 
22
+ client_max_body_size 4G;
23
+ keepalive_timeout 10;
24
+
25
+ error_page 500 502 504 /500.html;
26
+ error_page 503 @503;
27
+
22
28
  server_name <%= nginx_server_name %>;
23
29
  root <%= current_path %>/public;
24
30
  try_files $uri/index.html $uri @unicorn_<%= application %>;
@@ -36,25 +42,12 @@ server {
36
42
  error_log <%= shared_path %>/log/nginx.error.log;
37
43
  }
38
44
 
39
- location ~ ^/(assets|images|javascripts|stylesheets|swfs|system)/ {
45
+ location ^~ /assets/ {
40
46
  gzip_static on;
41
47
  expires max;
42
48
  add_header Cache-Control public;
43
- add_header Last-Modified "";
44
- add_header ETag "";
45
-
46
- open_file_cache max=1000 inactive=500s;
47
- open_file_cache_valid 600s;
48
- open_file_cache_errors on;
49
- break;
50
49
  }
51
50
 
52
- client_max_body_size 4G;
53
- keepalive_timeout 10;
54
-
55
- error_page 500 502 504 /500.html;
56
- error_page 503 @503;
57
-
58
51
  location = /50x.html {
59
52
  root html;
60
53
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-nginx-unicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Tkalin