annotate host/startup/nginx/nginx.conf.luan @ 1801:32e77b071e09

webserver logging
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 Mar 2024 09:28:39 -0600
parents da85925fea9c
children
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;
1776
da85925fea9c listen ipv6
Vadim Filimonov <fffilimonov@yandex.ru>
parents: 1725
diff changeset
25 listen [::]:80 default_server;
1632
0344a535b1db add doc
fffilimonov
parents:
diff changeset
26 include nginx.default.conf;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
27 }
0344a535b1db add doc
fffilimonov
parents:
diff changeset
28
0344a535b1db add doc
fffilimonov
parents:
diff changeset
29 include <%=rootDir%>/sites/*/nginx.ssl.conf;
0344a535b1db add doc
fffilimonov
parents:
diff changeset
30 }
0344a535b1db add doc
fffilimonov
parents:
diff changeset
31 <%