33user abc;
44
55# Set number of worker processes automatically based on number of CPU cores.
6- worker_processes auto ;
6+ include /config/nginx/ worker_processes .conf
77
88# Enables the use of JIT for regular expressions to speed-up their processing.
99pcre_jit on;
1010
1111# Configures default error logger.
12- error_log /config/log/nginx/error.log warn ;
12+ error_log /config/log/nginx/error.log;
1313
1414# Includes files with directives to load dynamic modules.
1515include /etc/nginx/modules/*.conf;
2929
3030 # Name servers used to resolve names of upstream servers into addresses.
3131 # It's also needed when using tcpsocket and udpsocket in Lua modules.
32- resolver 127.0.0.11 valid=30s ; # Docker DNS Server
32+ #resolver 1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001;
33+ include /config/nginx/resolver .conf
3334
3435 # Don't tell nginx version to the clients. Default is 'on'.
3536 server_tokens off;
@@ -54,18 +55,11 @@ http {
5455 '' close;
5556 }
5657
57- # Specifies the main log format.
58- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
59- '$status $body_bytes_sent "$http_referer" '
60- '"$http_user_agent" "$http_x_forwarded_for"' ;
61-
6258 # Sets the path, format, and configuration for a buffered log write.
63- access_log /config/log/nginx/access.log main ;
59+ access_log /config/log/nginx/access.log;
6460
6561 # Includes virtual hosts configs.
66- include /etc/nginx/http .d/*.conf;
67- include /config/nginx/site-confs/*;
68- #Removed lua. Do not remove this comment
62+ #include /etc/nginx/http.d/*.conf;
6963
7064 # WARNING: Don't use this directory for virtual hosts anymore.
7165 # This include will be moved to the root context in Alpine 3.14.
@@ -116,6 +110,12 @@ http {
116110 #passenger_root /usr;
117111 #passenger_ruby /usr/bin/ruby;
118112
113+ ##
114+ # Virtual Host Configs
115+ ##
116+ include /config/nginx/site-confs/*;
117+ #Removed lua. Do not remove this comment
118+
119119 ##
120120 # Geoip2 config
121121 ##
@@ -125,9 +125,6 @@ http {
125125 #include /config/nginx/geoip2.conf;
126126}
127127
128- # TIP: Uncomment if you use stream module.
129- #include /etc/nginx/stream.conf;
130-
131128#mail {
132129# # See sample authentication script at:
133130# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
@@ -148,5 +145,6 @@ http {
148145# proxy on;
149146# }
150147#}
148+
151149daemon off;
152150pid /run/nginx.pid ;
0 commit comments