capistrano-unformatt 1.12 → 1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/capistrano-unformatt.gemspec +1 -1
- data/vendor/templates/nginx.conf.erb +45 -45
- 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: 4329f7a051b147dbf6f59aed989ee0a93729613e
|
|
4
|
+
data.tar.gz: 81e65998fdc812e4ec5e125112d16feb4a2e3d44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c83a3251b8daefacd2b35d3f6eef1a0f822023da22e98f015661ff9588d373fc24627ff62e9f3cd51c80931e6d99b9d102f8afd8b3b32a13fdc0f032041b5fe
|
|
7
|
+
data.tar.gz: 333c3748b2db12fa8e5d7d52c520bd879a6e7157e8aba6f113e95345f5916ee9ac744dbdefd7c5c97e4081faa1b1ba798f6890f1af547b70f3fbc75caa8ce5c1
|
data/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "capistrano-unformatt"
|
|
7
|
-
spec.version = '1.
|
|
7
|
+
spec.version = '1.13'
|
|
8
8
|
spec.authors = ["unformatt"]
|
|
9
9
|
spec.email = ["unformatt@gmail.com"]
|
|
10
10
|
spec.description = "Custom recipes for Unformatt projects"
|
|
@@ -4,59 +4,59 @@ upstream <%=fetch(:application)%> {
|
|
|
4
4
|
|
|
5
5
|
<%- if fetch(:nginx_protocols,[]).map(&:to_s).include?('http') -%>
|
|
6
6
|
<%- if fetch(:nginx_redirect_to_ssl, fetch(:nginx_use_ssl, false)) -%>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
server {
|
|
8
|
+
listen <%= fetch(:nginx_http_port, 80) %>;
|
|
9
|
+
server_name <%=fetch(:nginx_http_server_names,fetch(:nginx_server_names))%>;
|
|
10
|
+
rewrite ^ https://$server_name$request_uri? permanent;
|
|
11
|
+
}
|
|
12
12
|
<%- else -%>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
server {
|
|
14
|
+
listen <%= fetch(:nginx_http_port, 80) %>;
|
|
15
|
+
server_name <%=fetch(:nginx_http_server_names,fetch(:nginx_server_names))%>;
|
|
16
|
+
root <%=current_path%>/public;
|
|
17
|
+
access_log <%=fetch(:nginx_access_log, "#{shared_path}/log/nginx-access.log") %>;
|
|
18
|
+
error_log <%=fetch(:nginx_error_log, "#{shared_path}/log/nginx-error.log")%>;
|
|
19
|
+
rewrite_log on;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
client_max_body_size <%=fetch(:nginx_max_body_size, '4G')%>;
|
|
22
|
+
keepalive_timeout <%=fetch(:nginx_keepalive_timeout, '5')%>;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
if (-f $document_root/public/maintenance.html) {
|
|
25
|
+
rewrite ^(.*)$ /public/maintenance.html;
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
location ~ ^/(assets)/ {
|
|
30
|
+
root <%=current_path%>/public;
|
|
31
|
+
gzip_static on;
|
|
32
|
+
expires max;
|
|
33
|
+
add_header Cache-Control public;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
location / {
|
|
38
|
+
try_files $uri/index.html $uri.html $uri @<%=fetch(:application)%>;
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
error_page 404 /404.html;
|
|
41
|
+
error_page 422 /422.html;
|
|
42
|
+
error_page 500 502 503 504 /500.html;
|
|
43
|
+
error_page 403 /403.html;
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
47
|
+
location @<%=fetch(:application)%> {
|
|
48
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
49
|
+
proxy_set_header Host $http_host;
|
|
50
|
+
proxy_headers_hash_bucket_size <%=fetch(:nginx_hash_bucket_size, 1024)%>;
|
|
51
|
+
proxy_headers_hash_max_size <%=fetch(:nginx_hash_max_size, 512)%>;
|
|
52
|
+
proxy_read_timeout <%=fetch(:nginx_read_timeout, 60)%>;
|
|
53
|
+
proxy_send_timeout <%=fetch(:nginx_send_timeout, 60)%>;
|
|
54
|
+
proxy_redirect off;
|
|
55
|
+
proxy_pass http://<%=fetch(:application)%>;
|
|
56
|
+
include proxy_params;
|
|
57
|
+
break;
|
|
59
58
|
}
|
|
59
|
+
}
|
|
60
60
|
<%- end -%>
|
|
61
61
|
<%- end -%>
|
|
62
62
|
|