@@ -38,6 +38,12 @@ config NGINX_LUA
help
Enable support for LUA scripts.
+config NGINX_SUB_MULTIFILTER
+ bool
+ prompt "Enable SUB_MULTIFILTER module"
+ help
+ Enable support for ngx_http_substitutions_filter_module.
+
config NGINX_PCRE
bool
prompt "Enable PCRE library usage"
@@ -49,7 +49,8 @@ PKG_CONFIG_DEPENDS := \
CONFIG_NGINX_HTTP_LIMIT_REQ \
CONFIG_NGINX_HTTP_EMPTY_GIF \
CONFIG_NGINX_HTTP_BROWSER \
- CONFIG_NGINX_HTTP_UPSTREAM_IP_HASH
+ CONFIG_NGINX_HTTP_UPSTREAM_IP_HASH \
+ CONFIG_NGINX_SUB_MULTIFILTER
include $(INCLUDE_DIR)/package.mk
@@ -100,6 +101,10 @@ endif
ifeq ($(CONFIG_NGINX_LUA),y)
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/lua-nginx
endif
+ifeq ($(CONFIG_NGINX_SUB_MULTIFILTER),y)
+ ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/sub-nginx
+endif
+
ifneq ($(CONFIG_NGINX_HTTP_CACHE),y)
ADDITIONAL_MODULES += --without-http-cache
endif
@@ -208,6 +213,9 @@ define Package/nginx/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nginx $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/nginx
$(INSTALL_DATA) $(addprefix
$(PKG_INSTALL_DIR)/etc/nginx/,$(config_files)) $(1)/etc/nginx/
+ $(INSTALL_BIN) ./files/bf.lua $(1)/etc/nginx/bf.lua
+ $(INSTALL_BIN) ./files/hf.lua $(1)/etc/nginx/hf.lua
+ $(INSTALL_BIN) ./files/nginx_wifi.conf $(1)/etc/nginx/nginx.conf
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/nginx.init $(1)/etc/init.d/nginx