Add config file.

This commit is contained in:
2018-05-10 01:35:55 +09:00
parent d9510f15ae
commit 7fe312c374
2 changed files with 63 additions and 25 deletions
+22 -25
View File
@@ -1,22 +1,7 @@
#!/bin/sh #!/bin/sh
### Please install library. ### Read config
### CentOS / Red Hat - yum install jemalloc-devel libuuid-devel libatomic expat-devel unzip autoconf automake libtool source ./config.inc
### Ubuntu / Debian - apt install libjemalloc-dev uuid-dev libatomic1 libatomic-ops-dev expat unzip autoconf automake libtool
### SERVER HEADER!!!
### Please edit this
SERVER_HEADER="hakase"
### x86, x64 check
### If you do not want optimization, uncomment it.
### (Comment out existing sources.)
BITCHK=`getconf LONG_BIT`
#BITCHK="32"
### PageSpeed
### If you do not want to build PageSpeed, please enter a value other than "y".
PAGESPEED="y"
### Remove Old file ### Remove Old file
rm -f /usr/sbin/nginx.old rm -f /usr/sbin/nginx.old
@@ -82,9 +67,25 @@ fi
### PageSpeed Check ### PageSpeed Check
if [ "$PAGESPEED" = "y" ]; then if [ "$PAGESPEED" = "y" ]; then
BUILD_PAGESPEED="--add-module=./lib/pagespeed ${PS_NGX_EXTRA_FLAGS}" BUILD_MODULES="--add-module=./lib/pagespeed ${PS_NGX_EXTRA_FLAGS}"
else else
BUILD_PAGESPEED="" BUILD_MODULES=""
fi
if [ "$RTMP" = "y" ]; then
BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/nginx-rtmp-module"
fi
if [ "$NAXSI" = "y" ]; then
BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/naxsi/naxsi_src"
fi
if [ "$DAV_EXT" = "y" ]; then
BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/nginx-dav-ext-module"
fi
if [ "$FANCYINDEX" = "y" ]; then
BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/ngx-fancyindex"
fi fi
@@ -140,12 +141,8 @@ auto/configure \
--with-stream_ssl_preread_module \ --with-stream_ssl_preread_module \
--add-module=./lib/ngx_devel_kit \ --add-module=./lib/ngx_devel_kit \
--add-module=./lib/ngx_brotli \ --add-module=./lib/ngx_brotli \
${BUILD_PAGESPEED} \ --add-module=./lib/headers-more-nginx-module \
--add-module=./lib/ngx-fancyindex \ ${BUILD_MODULES}
--add-module=./lib/nginx-rtmp-module \
--add-module=./lib/naxsi/naxsi_src \
--add-module=./lib/nginx-dav-ext-module \
--add-module=./lib/headers-more-nginx-module
### Deprecated (maybe) Modules ### Deprecated (maybe) Modules
+41
View File
@@ -0,0 +1,41 @@
### Please install library.
### CentOS / Red Hat - yum install jemalloc-devel libuuid-devel libatomic expat-devel unzip autoconf automake libtool
### Ubuntu / Debian - apt install libjemalloc-dev uuid-dev libatomic1 libatomic-ops-dev expat unzip autoconf automake libtool
######################
### Default Config ###
######################
### SERVER HEADER!!!
### Please edit this
SERVER_HEADER="hakase"
### x86, x64 check
### If you do not want optimization, uncomment it.
### (Comment out existing sources.)
BITCHK=`getconf LONG_BIT`
#BITCHK="32"
### Multithread build
BUILD_MTS="-j$(expr $(nproc) \+ 1)"
#########################
### Select add module ###
#########################
### If you do not want to build modules, please enter a value other than "y".
### PageSpeed
PAGESPEED="y"
### nginx-rtmp-module
RTMP="y"
### naxsi
NAXSI="y"
### nginx-dav-ext-module
DAV_EXT="y"
### fancyindex
FANCYINDEX="y"