1630
|
1 local rootDir, user, group = ...
|
|
2
|
|
3 %>
|
|
4 worker_processes 4;
|
|
5 user <%=user%> <%=group%>;
|
|
6
|
|
7 events {
|
|
8 worker_connections 4096;
|
|
9 }
|
|
10
|
|
11 http {
|
|
12 include mime.types;
|
|
13 default_type application/octet-stream;
|
|
14 sendfile on;
|
|
15 keepalive_timeout 65;
|
|
16
|
|
17 proxy_cache_path <%=rootDir%>/local/nginx_cache levels=1:2 keys_zone=nginx_cache:60m max_size=10g inactive=60m use_temp_path=off;
|
|
18
|
|
19 upstream luan {
|
|
20 server 127.0.0.1:8080;
|
|
21 }
|
|
22
|
|
23 server {
|
|
24 listen 80 default_server;
|
|
25 include nginx.default.conf;
|
|
26 }
|
|
27
|
|
28 include <%=rootDir%>/sites/*/nginx.ssl.conf;
|
|
29 }
|
|
30 <%
|