Browse Source

Load events configuration from custom file

BitsOfAByte 2 years ago
parent
commit
3c23aa935e
2 changed files with 2 additions and 1 deletions
  1. 1 1
      docker/rootfs/etc/nginx/nginx.conf
  2. 1 0
      docs/advanced-config/README.md

+ 1 - 1
docker/rootfs/etc/nginx/nginx.conf

@@ -15,7 +15,7 @@ error_log /data/logs/fallback_error.log warn;
 include /etc/nginx/modules/*.conf;
 
 events {
-	worker_connections  1024;
+	include /data/nginx/custom/events[.]conf;
 }
 
 http {

+ 1 - 0
docs/advanced-config/README.md

@@ -151,6 +151,7 @@ You can add your custom configuration snippet files at `/data/nginx/custom` as f
  - `/data/nginx/custom/root.conf`: Included at the very end of nginx.conf
  - `/data/nginx/custom/http_top.conf`: Included at the top of the main http block
  - `/data/nginx/custom/http.conf`: Included at the end of the main http block
+ - `/data/nginx/custom/events.conf`: Included at the end of the events block
  - `/data/nginx/custom/stream.conf`: Included at the end of the main stream block
  - `/data/nginx/custom/server_proxy.conf`: Included at the end of every proxy server block
  - `/data/nginx/custom/server_redirect.conf`: Included at the end of every redirection server block