Skip to content

Commit 9822078

Browse files
committedJan 8, 2012
Set the number of nginx workers in wre.conf. Fix syntax errors in the nginx templates (missing semi-colons).
1 parent cb9116f commit 9822078

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
 

‎wre/etc/wre.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@
1919
"connectionTimeout" : 30,
2020
"defaultHostname" : "localhost",
2121
"port" : 8081,
22-
"workers" : 10
22+
"workers" : 5
2323
},
2424

2525
# nginx
2626
"nginx" : {
2727
"connectionTimeout" : 30,
2828
"defaultHostname" : "localhost",
2929
"port" : 80,
30+
"workers" : 10
3031
},
3132

3233
# utilities

‎wre/var/setupfiles/nginx.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
user [% config.get('user') %];
2-
worker_processes 10;
2+
worker_processes [% config.get('nginx/workers') %];
33

44
error_log [% config.getRoot %]/var/logs/nginx_error.log;
55

@@ -28,6 +28,6 @@ http {
2828
gzip_comp_level 9;
2929

3030
##Include per-server vhost configuration files.
31-
include [% config.getRoot %]/etc/*.nginx
31+
include [% config.getRoot %]/etc/*.nginx;
3232

3333
}

‎wre/var/setupfiles/nginx.template

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
server {
2-
server_name [% sitename %] [%domain %]
2+
server_name [% sitename %] [%domain %];
33

44
listen [% config.get('nginx/port') %]; ## listen for ipv4
55

6-
access_log [% domainRoot %]/[% sitename %]/logs/access.log combined
6+
access_log [% domainRoot %]/[% sitename %]/logs/access.log combined;
77
root [% domainRoot %]/www.example.com/public;
88
client_max_body_size 20M;
99

@@ -36,7 +36,7 @@ server {
3636

3737
#server {
3838
# listen 443;
39-
# server_name [% sitename %] [%domain %]
39+
# server_name [% sitename %] [%domain %];
4040
#
4141
# ssl on;
4242
# ssl_certificate [% domainRoot %]/[% sitename %]/certs/server.crt

0 commit comments

Comments
 (0)
Please sign in to comment.