aboutsummaryrefslogtreecommitdiff
path: root/net/nginx/files/_lan.conf
diff options
context:
space:
mode:
authorPeter Stadler <peter.stadler@student.uibk.ac.at>2020-01-20 22:49:27 +0100
committerPeter Stadler <peter.stadler@student.uibk.ac.at>2020-01-28 12:24:55 +0100
commit2401fd6db5e582d1b1442e4832222a3fee50937a (patch)
tree2560f50c4611bc94e0554657db551a07c1b9dde1 /net/nginx/files/_lan.conf
parentc6b4d7f367deafc428c703ce13b0ad0403502fb5 (diff)
nginx: use /etc/nginx/nginx.conf enabling conf.d/
Instead of the default nginx.conf file this file is a small variant without examples that enables the /etc/nginx/conf.d/ directory. It will pull in all configuration files from the conf.d directory. So, other packages can add their server parts in the conf.d directory without modifying the main nginx.conf file (cf. #9860). Changed also the default logging behavior: error_log stderr; # the init forwards it to logd access_log off; See the updated documentation at: https://openwrt.org/docs/guide-user/services/webserver/nginx Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
Diffstat (limited to 'net/nginx/files/_lan.conf')
-rw-r--r--net/nginx/files/_lan.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/nginx/files/_lan.conf b/net/nginx/files/_lan.conf
new file mode 100644
index 000000000..d44871f3c
--- /dev/null
+++ b/net/nginx/files/_lan.conf
@@ -0,0 +1,8 @@
+# default_server for the LAN addresses getting the IPs by:
+# ifstatus lan | jsonfilter -e '@["ipv4-address","ipv6-address"].*.address'
+server {
+ include '/var/lib/nginx/lan.listen.default';
+ server_name _lan;
+ # access_log /proc/self/fd/1 openwrt; # use logd (init forwards stdout).
+ include conf.d/*.locations;
+}