Move custom http.conf above includes for NPM-generated files.
Added a new clause for custom http.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.conf file. Example: add a new log_format in httpconf, then referencing it in a access_log clause in server_proxy.conf.
This commit is contained in:
parent
8cb44c7b97
commit
d64ee1fdd3
1 changed files with 3 additions and 3 deletions
|
@ -69,6 +69,9 @@ http {
|
|||
real_ip_header X-Real-IP;
|
||||
real_ip_recursive on;
|
||||
|
||||
# Custom
|
||||
include /data/nginx/custom/http[.]conf;
|
||||
|
||||
# Files generated by NPM
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
include /data/nginx/default_host/*.conf;
|
||||
|
@ -76,9 +79,6 @@ http {
|
|||
include /data/nginx/redirection_host/*.conf;
|
||||
include /data/nginx/dead_host/*.conf;
|
||||
include /data/nginx/temp/*.conf;
|
||||
|
||||
# Custom
|
||||
include /data/nginx/custom/http[.]conf;
|
||||
}
|
||||
|
||||
stream {
|
||||
|
|
Loading…
Reference in a new issue