Update readme and optimize nginx compile
This commit is contained in:
parent
117f5f860b
commit
3398a1a2ed
30
README.md
30
README.md
|
@ -1,3 +1,29 @@
|
|||
# nginx-compiler
|
||||
# Nginx compiler
|
||||
|
||||
A Nginx compiler with brotli, more header and last openssl version.
|
||||
|
||||
## How to use it ?
|
||||
|
||||
Clone this repo where you want.
|
||||
Get last Nginx release on [nginx.org](https://nginx.org)
|
||||
Get last OpenSSL release on [openssl](https://openssl.org)
|
||||
Launch this command `./nginx_compile_deb.sh NGINX_VER OPENSSL_VER TEMP_FOLDER`
|
||||
|
||||
Wait and see ;)
|
||||
|
||||
## What are the compiled extensions?
|
||||
|
||||
| Extensions | Descriptions |
|
||||
| -------- | -------- |
|
||||
| SSL | Support SSL |
|
||||
| RealIP | The ngx_http_realip_module module is used to change the client address and optional port to those sent in the specified header field. |
|
||||
| Addition | The ngx_http_addition_module module is a filter that adds text before and after a response. |
|
||||
| Sub | The ngx_http_sub_module module is a filter that modifies a response by replacing one specified string by another. |
|
||||
| Dav | The ngx_http_dav_module module is intended for file management automation via the WebDAV protocol. The module processes HTTP and WebDAV methods PUT, DELETE, MKCOL, COPY, and MOVE. |
|
||||
| FLV | Media streaming server based on nginx-rtmp-module. In addtion to the features nginx-rtmp-module provides, HTTP-FLV, GOP cache and VHOST (one IP for multi domain names) are supported now. |
|
||||
| MP4 | The ngx_http_mp4_module module provides pseudo-streaming server-side support for MP4 files. Such files typically have the .mp4, .m4v, or .m4a filename extensions. |
|
||||
| Gzip | The ngx_http_gunzip_module module is a filter that decompresses responses with “Content-Encoding: gzip” for clients that do not support “gzip” encoding method. The module will be useful when it is desirable to store data compressed to save space and reduce I/O costs. |
|
||||
| Stub | The ngx_http_stub_status_module module provides access to basic status information. |
|
||||
| HTTP/2 | Support HTTP/2 |
|
||||
| IPv6 | Support IPv6 |
|
||||
|
||||
A Nginx compile with brotli, more header and last openssl version.
|
|
@ -132,23 +132,20 @@ cd ${TMP_FOLDER}/nginx-${NGINX_VER}
|
|||
--with-http_mp4_module \
|
||||
--with-http_gunzip_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_random_index_module \
|
||||
--with-http_secure_link_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-threads \
|
||||
--with-stream \
|
||||
--with-stream_ssl_module \
|
||||
--with-http_slice_module \
|
||||
--with-pcre-jit \
|
||||
--with-http_v2_module \
|
||||
--with-file-aio \
|
||||
--with-ipv6 \
|
||||
--add-module=/tmp/headers-more-nginx-module \
|
||||
--add-module=/tmp/nginx-ct \
|
||||
--add-module=/tmp/ngx_brotli \
|
||||
--add-module=${TMP_FOLDER}/headers-more-nginx-module \
|
||||
--add-module=${TMP_FOLDER}/nginx-ct \
|
||||
--add-module=${TMP_FOLDER}/ngx_brotli \
|
||||
--with-cc-opt="-O3 -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wno-deprecated-declarations" \
|
||||
--with-openssl-opt='no-async enable-ec_nistp_64_gcc_128 no-shared no-ssl2 no-ssl3 no-comp no-idea no-weak-ssl-ciphers -DOPENSSL_NO_HEARTBEATS -O3 -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2' \
|
||||
--with-openssl=/tmp/openssl-${OPENSSL_VER} >/dev/null 2>/dev/null
|
||||
--with-openssl=${TMP_FOLDER}/openssl-${OPENSSL_VER} >/dev/null 2>/dev/null
|
||||
make --quiet -j 1 >/dev/null 2>/dev/null
|
||||
make --quiet install >/dev/null 2>/dev/null
|
||||
|
||||
|
|
Loading…
Reference in New Issue