nginquic : init

This commit is contained in:
unknown 2022-01-30 20:45:00 +07:00
parent 161e7e1e1a
commit d21bc7bd48
Signed by: minoplhy
GPG Key ID: 90667A59A9908AEC
6 changed files with 108 additions and 0 deletions

6
nginquic/README Normal file
View File

@ -0,0 +1,6 @@
Note to Self :
This Script is using to build nginx with quic and some modules i'm currently using .
**Please Purge existed Nginx before build**
OS : Debian

15
nginquic/build.sh Normal file
View File

@ -0,0 +1,15 @@
cd ~/
curl -sSL packages.sh | bash
mkdir nginquic && cd nginquic
hg clone -b quic https://hg.nginx.org/nginx-quic
git clone https://github.com/google/boringssl
cd boringssl
mkdir build && cd build && cmake .. && make
cd .. && cd ..
cd nginx-quic
mkdir mosc && cd mosc && curl dependency.sh | bash && cd ..
curl -sSL configure.sh | bash && make
cd objs cp *.so /lib/nginx/modules
cp nginx /usr/sbin/nginx
curl modules.conf > modules.conf
cp modules.conf /etc/nginx/modules-enabled

57
nginquic/configure.sh Normal file
View File

@ -0,0 +1,57 @@
./auto/configure \
--with-cc-opt="-I../boringssl/include" \
--with-ld-opt="-L../boringssl/build/ssl \
-L../boringssl/build/crypto" \
--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_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/ngx_devel_kit \
--add-dynamic-module=mosc/echo-nginx-module \
--add-dynamic-module=mosc/ngx-fancyindex \
--add-dynamic-module=mosc/nginx-upload-progress-module \
--add-dynamic-module=mosc/ngx_http_substitutions_filter_module \
--with-http_v3_module \
--with-stream_quic_module \
--with-http_geoip_module \
--with-stream_geoip_module

15
nginquic/modules.conf Normal file
View File

@ -0,0 +1,15 @@
load_module modules/ndk_http_module.so;
load_module modules/ngx_http_auth_pam_module.so;
load_module modules/ngx_http_cache_purge_module.so;
load_module modules/ngx_http_dav_ext_module.so;
load_module modules/ngx_http_echo_module.so;
load_module modules/ngx_http_fancyindex_module.so;
load_module modules/ngx_http_headers_more_filter_module.so;
load_module modules/ngx_http_image_filter_module.so;
load_module modules/ngx_http_perl_module.so;
load_module modules/ngx_http_subs_filter_module.so;
load_module modules/ngx_http_uploadprogress_module.so;
load_module modules/ngx_http_xslt_filter_module.so;
load_module modules/ngx_mail_module.so;
load_module modules/ngx_nchan_module.so;
load_module modules/ngx_stream_module.so;

14
nginquic/modules.sh Normal file
View File

@ -0,0 +1,14 @@
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/leev/ngx_http_geoip2_module.git
git clone https://github.com/aperezdc/ngx-fancyindex
git clone https://github.com/openresty/echo-nginx-module
git clone https://github.com/vision5/ngx_devel_kit
git clone https://github.com/slact/nchan
git clone https://github.com/openresty/lua-nginx-module
git clone https://github.com/arut/nginx-rtmp-module
git clone https://github.com/masterzen/nginx-upload-progress-module
git clone https://github.com/gnosek/nginx-upstream-fair
git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module
git clone https://github.com/nginx-modules/ngx_cache_purge

1
nginquic/packages.sh Normal file
View File

@ -0,0 +1 @@
sudo apt-get install mercurial golang libunwind-dev libpcre3 libpcre3-dev zlib1g-dev cmake make libxslt1-dev libgd-dev libssl-dev libperl-dev libpam0g-dev mercurial git -y