annotate host/startup/nginx/nginx.conf.luan @ 1724:32c6b085bb83

test custom nginx
author Vadim Filimonov <fffilimonov@yandex.ru>
date Thu, 11 Aug 2022 12:18:33 +0200
parents 0344a535b1db
children 39af1c737191
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1632
0344a535b1db add doc
fffilimonov
parents:
diff changeset
1 local rootDir, user, group = ...
0344a535b1db add doc
fffilimonov
parents:
diff changeset
2
0344a535b1db add doc
fffilimonov
parents:
diff changeset
3 %>
0344a535b1db add doc
fffilimonov
parents:
diff changeset
4 worker_processes 4;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
5 user <%=user%> <%=group%>;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
6
0344a535b1db add doc
fffilimonov
parents:
diff changeset
7 events {
0344a535b1db add doc
fffilimonov
parents:
diff changeset
8 worker_connections 4096;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
9 }
0344a535b1db add doc
fffilimonov
parents:
diff changeset
10
0344a535b1db add doc
fffilimonov
parents:
diff changeset
11 http {
0344a535b1db add doc
fffilimonov
parents:
diff changeset
12 include mime.types;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
13 default_type application/octet-stream;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
14 sendfile on;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
15 keepalive_timeout 65;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
16
0344a535b1db add doc
fffilimonov
parents:
diff changeset
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;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
18
0344a535b1db add doc
fffilimonov
parents:
diff changeset
19 upstream luan {
0344a535b1db add doc
fffilimonov
parents:
diff changeset
20 server 127.0.0.1:8080;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
21 }
0344a535b1db add doc
fffilimonov
parents:
diff changeset
22
0344a535b1db add doc
fffilimonov
parents:
diff changeset
23 server {
0344a535b1db add doc
fffilimonov
parents:
diff changeset
24 listen 80 default_server;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
25 include nginx.default.conf;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
26 }
0344a535b1db add doc
fffilimonov
parents:
diff changeset
27
0344a535b1db add doc
fffilimonov
parents:
diff changeset
28 include <%=rootDir%>/sites/*/nginx.ssl.conf;
1724
32c6b085bb83 test custom nginx
Vadim Filimonov <fffilimonov@yandex.ru>
parents: 1632
diff changeset
29 include <%=rootDir%>/sites/*/src/nginx.custom.conf;
1632
0344a535b1db add doc
fffilimonov
parents:
diff changeset
30 }
0344a535b1db add doc
fffilimonov
parents:
diff changeset
31 <%