Browse Source

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.
kroegerama 1 year ago
parent
commit
3ce477d350
1 changed files with 3 additions and 0 deletions
  1. 3 0
      docker/rootfs/etc/nginx/nginx.conf

+ 3 - 0
docker/rootfs/etc/nginx/nginx.conf

@@ -14,6 +14,9 @@ error_log /data/logs/fallback_error.log warn;
 # Includes files with directives to load dynamic modules.
 # Includes files with directives to load dynamic modules.
 include /etc/nginx/modules/*.conf;
 include /etc/nginx/modules/*.conf;
 
 
+# Custom
+include /data/nginx/custom/root_top[.]conf;
+
 events {
 events {
 	include /data/nginx/custom/events[.]conf;
 	include /data/nginx/custom/events[.]conf;
 }
 }