nginx_build_script: add: building with LibreSSL, BoringSSL, QuicTLS

add: give section a name
					note: building LibreSSL with Lua is broken, consider disabling it.
This commit is contained in:
minoplhy 2024-04-28 23:15:45 +07:00
parent 57d32ceed5
commit 05a452ac4b
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
2 changed files with 153 additions and 66 deletions

View File

@ -17,14 +17,24 @@ curl https://raw.githubusercontent.com/minoplhy/scriptbox/main/nginx_build_scrip
```bash
while [ ${#} -gt 0 ]; do
case "$1" in
--no-modsecurity | -nm )
DISABLE_MODSECURITY=true # Not include ModSecurity in building
;;
--no-lua | -nl )
DISABLE_LUA=true # Not include Lua in building
;;
--install | -i )
INSTALL=true # Install Nginx
--no-modsecurity | -nm ) DISABLE_MODSECURITY=true;; # Not include ModSecurity in building
--no-lua | -nl ) DISABLE_LUA=true ;; # Not include Lua in building
--install | -i ) INSTALL=true ;; # Install Nginx
--ssl=* )
SSL_LIB="${1#*=}"
case $SSL_LIB in # Re-define SSL_LIB
"quictls") SSL_LIB="quictls" ;;
"boringssl") SSL_LIB="boringssl" ;;
"libressl") SSL_LIB="libressl" ;;
"")
echo "ERROR : --ssl= is empty!"
exit 1
;;
*)
echo "ERROR : Vaild values for --ssl are -> quictls, boringssl, libressl"
exit 1
;;
esac
;;
*)
;;
@ -33,7 +43,10 @@ while [ ${#} -gt 0 ]; do
done
```
#### Note : don't forgot to add necessary `lua_package_path` directive to `nginx.conf`, in the http context. else Nginx won't run.
#### Note :
* don't forgot to add necessary `lua_package_path` directive to `nginx.conf`, in the http context. else Nginx won't run.
* LibreSSL is broken when compile with Nginx Lua
```lua
lua_package_path "/usr/local/lua/?.lua;;';
```

File diff suppressed because it is too large Load Diff