From e144199c4e23f0218e79807146d9c0fed3f058e8 Mon Sep 17 00:00:00 2001 From: Carl Mercier Date: Thu, 8 Aug 2019 20:54:25 -0400 Subject: [PATCH] Advanced Nginx settings doc --- doc/ADVANCED_NGINX.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/ADVANCED_NGINX.md diff --git a/doc/ADVANCED_NGINX.md b/doc/ADVANCED_NGINX.md new file mode 100644 index 00000000..eabac84c --- /dev/null +++ b/doc/ADVANCED_NGINX.md @@ -0,0 +1,17 @@ +## Advanced Nginx Configuration + +If you are a more advanced user, you might be itching for extra Nginx customizability. + +NPM has the ability to include different custom configuration snippets in different places. + +You can add your custom configuration snippet files at `/data/nginx/custom` as follow: + +`/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/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 +`/data/nginx/custom/server_stream_tcp.conf`: Included at the end of every TCP stream server block +`/data/nginx/custom/server_stream_udp.conf`: Included at the end of every UDP stream server block + +Every file is optional. \ No newline at end of file