From 528e5ef3bcf84fae7afd614493e8a9876940cd79 Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Tue, 1 Dec 2020 14:22:31 -0500 Subject: [PATCH 1/2] allow custom stream conf Allow a top-level custom `stream` configuration file to be loaded. --- docker/rootfs/etc/nginx/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/rootfs/etc/nginx/nginx.conf b/docker/rootfs/etc/nginx/nginx.conf index ed58a5f..4524d2d 100644 --- a/docker/rootfs/etc/nginx/nginx.conf +++ b/docker/rootfs/etc/nginx/nginx.conf @@ -84,6 +84,9 @@ http { stream { # Files generated by NPM include /data/nginx/stream/*.conf; + + # Custom + include /data/nginx/custom/stream[.]conf; } # Custom From 6bd2ac7d6dd354d8415b3d28346c68e962e7f163 Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Tue, 1 Dec 2020 14:24:14 -0500 Subject: [PATCH 2/2] Update README.md --- docs/advanced-config/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/advanced-config/README.md b/docs/advanced-config/README.md index 30daf25..7c622d5 100644 --- a/docs/advanced-config/README.md +++ b/docs/advanced-config/README.md @@ -24,6 +24,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.conf`: Included at the end of the main http 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 - `/data/nginx/custom/server_stream.conf`: Included at the end of every stream server block