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