Skip to content

Commit

Permalink
Set the number of nginx workers in wre.conf. Fix syntax errors in the…
Browse files Browse the repository at this point in the history
… nginx templates (missing semi-colons).
  • Loading branch information
perlDreamer committed Jan 8, 2012
1 parent cb9116f commit 9822078
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion wre/etc/wre.conf
Expand Up @@ -19,14 +19,15 @@
"connectionTimeout" : 30,
"defaultHostname" : "localhost",
"port" : 8081,
"workers" : 10
"workers" : 5
},

# nginx
"nginx" : {
"connectionTimeout" : 30,
"defaultHostname" : "localhost",
"port" : 80,
"workers" : 10
},

# utilities
Expand Down
4 changes: 2 additions & 2 deletions wre/var/setupfiles/nginx.conf
@@ -1,5 +1,5 @@
user [% config.get('user') %];
worker_processes 10;
worker_processes [% config.get('nginx/workers') %];

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

Expand Down Expand Up @@ -28,6 +28,6 @@ http {
gzip_comp_level 9;

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

}
6 changes: 3 additions & 3 deletions wre/var/setupfiles/nginx.template
@@ -1,9 +1,9 @@
server {
server_name [% sitename %] [%domain %]
server_name [% sitename %] [%domain %];

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

access_log [% domainRoot %]/[% sitename %]/logs/access.log combined
access_log [% domainRoot %]/[% sitename %]/logs/access.log combined;
root [% domainRoot %]/www.example.com/public;
client_max_body_size 20M;

Expand Down Expand Up @@ -36,7 +36,7 @@ server {

#server {
# listen 443;
# server_name [% sitename %] [%domain %]
# server_name [% sitename %] [%domain %];
#
# ssl on;
# ssl_certificate [% domainRoot %]/[% sitename %]/certs/server.crt
Expand Down

0 comments on commit 9822078

Please sign in to comment.