recipiez 0.0.9 → 0.1.0
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.
- data/recipes/templates/nginx_node.erb +23 -0
- data/recipiez.gemspec +1 -1
- metadata +4 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Generated by capistrano and the recipiez gem.
|
|
2
|
+
|
|
3
|
+
upstream <%= application %> {
|
|
4
|
+
server 127.0.0.1:<%= node_port ? node_port : '3000' %>;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
# the nginx server instance
|
|
8
|
+
server {
|
|
9
|
+
listen 0.0.0.0:80;
|
|
10
|
+
server_name <%= app_domain %>;
|
|
11
|
+
access_log /var/log/nginx/<%= application %>.log;
|
|
12
|
+
|
|
13
|
+
# pass the request to the node.js server with the correct headers and much more can be added, see nginx config options
|
|
14
|
+
location / {
|
|
15
|
+
proxy_set_header X-Real-IP $remote_addr;
|
|
16
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
17
|
+
proxy_set_header Host $http_host;
|
|
18
|
+
proxy_set_header X-NginX-Proxy true;
|
|
19
|
+
|
|
20
|
+
proxy_pass http://<%= application %>/;
|
|
21
|
+
proxy_redirect off;
|
|
22
|
+
}
|
|
23
|
+
}
|
data/recipiez.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recipiez
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
+
- 1
|
|
8
9
|
- 0
|
|
9
|
-
|
|
10
|
-
version: 0.0.9
|
|
10
|
+
version: 0.1.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Alastair Brunton
|
|
@@ -76,6 +76,7 @@ files:
|
|
|
76
76
|
- recipes/templates/monit_config.erb
|
|
77
77
|
- recipes/templates/mysql_monit.erb
|
|
78
78
|
- recipes/templates/nginx_monit.erb
|
|
79
|
+
- recipes/templates/nginx_node.erb
|
|
79
80
|
- recipes/templates/nginx_vhost.erb
|
|
80
81
|
- recipes/templates/passenger_vhost.erb
|
|
81
82
|
- recipes/templates/php_handler.erb
|