Skip to content

Commit 3ce477d

Browse files
authored
add include for root_top.conf in the nginx.conf
Allow custom configuration of the root config in the top of the file. This can be used to load modules, which is not possible at the end of the config file. There is already a `http_top.conf`, so `root_top.conf` is a logical addition.
1 parent 8d80af3 commit 3ce477d

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
@@ -14,6 +14,9 @@ error_log /data/logs/fallback_error.log warn;
1414
# Includes files with directives to load dynamic modules.
1515
include /etc/nginx/modules/*.conf;
1616

17+
# Custom
18+
include /data/nginx/custom/root_top[.]conf;
19+
1720
events {
1821
include /data/nginx/custom/events[.]conf;
1922
}

0 commit comments

Comments
 (0)