Skip to content

Commit 4ac52a0

Browse files
authored
Add custom .conf above includes for NPM-generated files.
Added a new clause for custom http_top.conf above the include clauses for NPM-generated files. Allows for more flexibility with adding custom nginx .conf files to NPM Use case: adding a configuration change needs to be present before other custom configuration files are called and reference configuration from the custom http_top.conf file. Example: add a new log_format in http_top.conf, then referencing it in a access_log clause in server_proxy.conf.
1 parent 8cb44c7 commit 4ac52a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/rootfs/etc/nginx/nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ http {
6969
real_ip_header X-Real-IP;
7070
real_ip_recursive on;
7171

72+
# Custom
73+
include /data/nginx/custom/http_top[.]conf;
74+
7275
# Files generated by NPM
7376
include /etc/nginx/conf.d/*.conf;
7477
include /data/nginx/default_host/*.conf;

0 commit comments

Comments
 (0)