annotate host/startup/nginx/nginx.conf.luan @ 1727:63ab02188e9d

change priority
author Vadim Filimonov <fffilimonov@yandex.ru>
date Thu, 11 Aug 2022 13:11:53 +0200
parents 39af1c737191
children da85925fea9c
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;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
29 }
0344a535b1db add doc
fffilimonov
parents:
diff changeset
30 <%