diff options
author | Jochen Neumeister <joneum@FreeBSD.org> | 2019-11-28 10:17:37 +0000 |
---|---|---|
committer | Jochen Neumeister <joneum@FreeBSD.org> | 2019-11-28 10:17:37 +0000 |
commit | ab082438f713eb30023acda00eb98169bfbc33f8 (patch) | |
tree | 310238bc0604baee3d4a3cd2e392a26a6e46c03c /www/nginx/files/nginx.in | |
parent | Update devel/etcd33 to version 3.3.18. (diff) |
- Add support for FreeBSD accept filters [1]
- Fix build with HTTP_AUTH_KRB5 after r518471 [2]
- Update 3rd party Modul
PR: 238739 [1], 242256 [2]
Sponsored by: Netzkommune GmbH
Diffstat (limited to 'www/nginx/files/nginx.in')
-rw-r--r-- | www/nginx/files/nginx.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/www/nginx/files/nginx.in b/www/nginx/files/nginx.in index c0765f6b676f..3478a6948cb3 100644 --- a/www/nginx/files/nginx.in +++ b/www/nginx/files/nginx.in @@ -21,6 +21,9 @@ # Extra flags passed to start command. # nginxlimits_args (str): Default to "-e -U %%WWWOWN%%" # Arguments of pre-start limits run. +# nginx_http_accept_enable (bool): Set to "NO" by default. +# Set to yes to check for accf_http kernel module +# on start-up and load if not loaded. . /etc/rc.subr @@ -44,6 +47,7 @@ extra_commands="reload configtest upgrade gracefulstop" [ -z "$nginx_enable" ] && nginx_enable="NO" [ -z "$nginxlimits_enable" ] && nginxlimits_enable="NO" [ -z "$nginxlimits_args" ] && nginxlimits_args="-e -U %%WWWOWN%%" +[ -z "$nginx_http_accept_enable" ] && nginx_http_accept_enable="NO" load_rc_config $name @@ -123,6 +127,11 @@ nginx_upgrade() nginx_precmd() { + if checkyesno nginx_http_accept_enable + then + required_modules="$required_modules accf_http accf_data" + fi + nginx_checkconfig if checkyesno nginxlimits_enable |