mirror of
https://github.com/minoplhy/scriptbox.git
synced 2024-12-05 01:46:57 +00:00
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:
parent
57d32ceed5
commit
05a452ac4b
@ -17,14 +17,24 @@ curl https://raw.githubusercontent.com/minoplhy/scriptbox/main/nginx_build_scrip
|
|||||||
```bash
|
```bash
|
||||||
while [ ${#} -gt 0 ]; do
|
while [ ${#} -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--no-modsecurity | -nm )
|
--no-modsecurity | -nm ) DISABLE_MODSECURITY=true;; # Not include ModSecurity in building
|
||||||
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-lua | -nl )
|
--ssl=* )
|
||||||
DISABLE_LUA=true # Not include Lua in building
|
SSL_LIB="${1#*=}"
|
||||||
;;
|
case $SSL_LIB in # Re-define SSL_LIB
|
||||||
--install | -i )
|
"quictls") SSL_LIB="quictls" ;;
|
||||||
INSTALL=true # Install Nginx
|
"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
|
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
|
||||||
lua_package_path "/usr/local/lua/?.lua;;';
|
lua_package_path "/usr/local/lua/?.lua;;';
|
||||||
```
|
```
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user