From 0a67d0e1293df8a5be7ba9fe24834952c1e835e7 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Thu, 20 Apr 2023 12:59:08 +0200 Subject: [PATCH] nginx-util: add support for loading dynamic module in uci template Add support for loading dynamic module in uci template by adding .module file in module.d directory. Signed-off-by: Christian Marangi --- net/nginx-util/Makefile | 4 +++- net/nginx-util/files/uci.conf.template | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/net/nginx-util/Makefile b/net/nginx-util/Makefile index 2ff4da1944..52cdbb4eac 100644 --- a/net/nginx-util/Makefile +++ b/net/nginx-util/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nginx-util PKG_VERSION:=1.6 -PKG_RELEASE:=15 +PKG_RELEASE:=16 PKG_MAINTAINER:=Peter Stadler include $(INCLUDE_DIR)/package.mk @@ -67,6 +67,8 @@ define Package/nginx-ssl-util/install/default $(INSTALL_CONF) ./files/restrict_locally $(1)/etc/nginx/ + $(INSTALL_DIR) $(1)/etc/nginx/module.d/ + $(INSTALL_DIR) $(1)/etc/config/ $(INSTALL_CONF) ./files/nginx.config $(1)/etc/config/nginx diff --git a/net/nginx-util/files/uci.conf.template b/net/nginx-util/files/uci.conf.template index 1c611d9ad2..406ddb4cc1 100644 --- a/net/nginx-util/files/uci.conf.template +++ b/net/nginx-util/files/uci.conf.template @@ -6,6 +6,8 @@ worker_processes auto; user root; +include module.d/*.module; + events {} http { -- 2.30.2