Skip to content

Commit 546ce8d

Browse files
authored
Merge pull request #2444 from BitsOfAByte/develop
Load events configuration from custom file
2 parents 9b40bb2 + 3c23aa9 commit 546ce8d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docker/rootfs/etc/nginx/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ error_log /data/logs/fallback_error.log warn;
1515
include /etc/nginx/modules/*.conf;
1616

1717
events {
18-
worker_connections 1024;
18+
include /data/nginx/custom/events[.]conf;
1919
}
2020

2121
http {

docs/advanced-config/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ You can add your custom configuration snippet files at `/data/nginx/custom` as f
151151
- `/data/nginx/custom/root.conf`: Included at the very end of nginx.conf
152152
- `/data/nginx/custom/http_top.conf`: Included at the top of the main http block
153153
- `/data/nginx/custom/http.conf`: Included at the end of the main http block
154+
- `/data/nginx/custom/events.conf`: Included at the end of the events block
154155
- `/data/nginx/custom/stream.conf`: Included at the end of the main stream block
155156
- `/data/nginx/custom/server_proxy.conf`: Included at the end of every proxy server block
156157
- `/data/nginx/custom/server_redirect.conf`: Included at the end of every redirection server block

0 commit comments

Comments
 (0)