Skip to content
Permalink
Browse files

Set the number of nginx workers in wre.conf. Fix syntax errors in the…

… nginx templates (missing semi-colons).
  • Loading branch information...
perlDreamer committed Jan 8, 2012
1 parent cb9116f commit 982207824aa40caac1ce4e2d9d3f7a602dcb24ab
Showing with 7 additions and 6 deletions.
  1. +2 −1 wre/etc/wre.conf
  2. +2 −2 wre/var/setupfiles/nginx.conf
  3. +3 −3 wre/var/setupfiles/nginx.template
@@ -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
@@ -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;

@@ -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;

}
@@ -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;

@@ -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

0 comments on commit 9822078

Please sign in to comment.
You can’t perform that action at this time.