mirror of
https://github.com/minoplhy/scriptbox.git
synced 2024-12-05 01:46:57 +00:00
nginx_build_script : code revamp init
- Removed LibreSSL - Added BoringSSL - Fixed BoringSSL issue with Nginx (see: https://trac.nginx.org/nginx/ticket/2605#comment:8) - Added Nginx Lua Module(finally!) - Combined all files into one build.sh
This commit is contained in:
parent
be9a6f64c7
commit
da53d65abf
File diff suppressed because it is too large
Load Diff
@ -1,54 +0,0 @@
|
||||
./auto/configure \
|
||||
--with-openssl="../libressl" \
|
||||
--with-cc-opt="-I../libressl/include -I /usr/local/include -m64 -march=native -mtune=native -Ofast -flto -funroll-loops -ffunction-sections -fdata-sections" \
|
||||
--with-ld-opt="-L../libressl -m64 -Wl,-s -Wl,-Bsymbolic" \
|
||||
--prefix=/usr/share/nginx \
|
||||
--conf-path=/etc/nginx/nginx.conf \
|
||||
--http-log-path=/var/log/nginx/access.log \
|
||||
--error-log-path=/var/log/nginx/error.log \
|
||||
--lock-path=/var/lock/nginx.lock \
|
||||
--pid-path=/run/nginx.pid \
|
||||
--modules-path=/usr/lib/nginx/modules \
|
||||
--http-client-body-temp-path=/var/lib/nginx/body \
|
||||
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
|
||||
--http-proxy-temp-path=/var/lib/nginx/proxy \
|
||||
--http-scgi-temp-path=/var/lib/nginx/scgi \
|
||||
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
|
||||
--with-compat \
|
||||
--with-debug \
|
||||
--with-pcre-jit \
|
||||
--with-http_ssl_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_auth_request_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_v3_module \
|
||||
--with-http_dav_module \
|
||||
--with-http_slice_module \
|
||||
--with-threads \
|
||||
--with-http_addition_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_gunzip_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_image_filter_module=dynamic \
|
||||
--with-http_mp4_module \
|
||||
--with-http_perl_module=dynamic \
|
||||
--with-http_random_index_module \
|
||||
--with-http_secure_link_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_xslt_module=dynamic \
|
||||
--with-mail=dynamic \
|
||||
--with-mail_ssl_module \
|
||||
--with-stream \
|
||||
--with-stream_realip_module \
|
||||
--with-stream_ssl_module \
|
||||
--with-stream_ssl_preread_module \
|
||||
--add-dynamic-module=mosc/headers-more-nginx-module \
|
||||
--add-dynamic-module=mosc/ngx_http_auth_pam_module \
|
||||
--add-dynamic-module=mosc/ngx_cache_purge \
|
||||
--add-dynamic-module=mosc/nginx-dav-ext-module \
|
||||
--add-dynamic-module=mosc/echo-nginx-module \
|
||||
--add-dynamic-module=mosc/ModSecurity-nginx \
|
||||
--add-dynamic-module=mosc/ngx_brotli \
|
||||
--with-http_geoip_module \
|
||||
--with-stream_geoip_module
|
@ -1,18 +0,0 @@
|
||||
git clone https://github.com/openresty/headers-more-nginx-module
|
||||
git clone https://github.com/sto/ngx_http_auth_pam_module
|
||||
git clone https://github.com/arut/nginx-dav-ext-module/
|
||||
git clone https://github.com/openresty/echo-nginx-module
|
||||
git clone https://github.com/nginx-modules/ngx_cache_purge
|
||||
git clone https://github.com/SpiderLabs/ModSecurity-nginx
|
||||
# git clone https://github.com/openresty/lua-nginx-module
|
||||
# git clone https://github.com/vision5/ngx_devel_kit
|
||||
|
||||
# Lurking with ngx_brotli
|
||||
# The step will be a lot diffirent from another modules, as it a requirement from upstream repository. Not ME!
|
||||
|
||||
git clone --recurse-submodules -j8 https://github.com/google/ngx_brotli
|
||||
cd ngx_brotli/deps/brotli
|
||||
mkdir out && cd out
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_INSTALL_PREFIX=./installed ..
|
||||
cmake --build . --config Release --target brotlienc
|
||||
cd ../../../..
|
@ -1,2 +0,0 @@
|
||||
sudo apt-get install mercurial libunwind-dev libpcre3 libpcre3-dev zlib1g-dev cmake make libxslt1-dev libgd-dev libssl-dev libperl-dev libpam0g-dev libgeoip-dev git g++ -y
|
||||
sudo apt-get install apt-utils autoconf automake build-essential libcurl4-openssl-dev liblmdb-dev libtool libxml2-dev libyajl-dev pkgconf wget ninja-build -y
|
Loading…
Reference in New Issue
Block a user