comparison host/startup/nginx/nginx_master.conf.luan @ 2136:3ca8f933209d nginx_decoupled

Initial; use ~/.nginx-luan/ as nginx master conf dir instead of trying to detect the system default.
author Violet7
date Mon, 19 Jan 2026 19:47:11 -0800
parents
children 67b504ba388c
comparison
equal deleted inserted replaced
2135:e94d10d071e4 2136:3ca8f933209d
1 local nginxRootConfigDir, nginxSiteConfigsDir, nginxLogDir, nginxPidDir, nginxUser = ...
2
3 %>
4
5 # NOTE: this is a manually modified version of /etc/nginx/nginx.conf
6 # on an ubuntu (pop-os) linux machine.
7
8
9 user <%=nginxUser%> <%=nginxUser%>;
10 worker_processes auto;
11 pid <%=nginxPidDir%>/nginx.pid;
12 error_log <%=nginxLogDir%>/error.log;
13 # Entirely untested, uncomment if modules are needed
14 # include <%=nginxRootConfigDir%>/modules/*.conf;
15
16 events {
17 # how was this calculated?
18 worker_connections 768;
19 # multi_accept on;
20 }
21
22 http {
23
24 ##
25 # Basic Settings
26 ##
27
28 sendfile on;
29 tcp_nopush on;
30 types_hash_max_size 2048;
31 # server_tokens off;
32
33 # server_names_hash_bucket_size 64;
34 # server_name_in_redirect off;
35
36 include <%=nginxRootConfigDir%>/mime.types;
37 default_type application/octet-stream;
38
39 ##
40 # SSL Settings
41 ##
42
43 ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
44 ssl_prefer_server_ciphers on;
45
46 ##
47 # Logging Settings
48 ##
49
50 access_log <%=nginxLogDir%>/access.log;
51
52 ##
53 # Gzip Settings
54 ##
55
56 gzip on;
57
58 # gzip_vary on;
59 # gzip_proxied any;
60 # gzip_comp_level 6;
61 # gzip_buffers 16 8k;
62 # gzip_http_version 1.1;
63 # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
64
65 ##
66 # Virtual Host Configs
67 ##
68
69 include <%=nginxSiteConfigsDir%>/*.conf;
70 }
71
72 <%