config.inc Improved modifiability.

This commit is contained in:
2018-05-10 01:56:17 +09:00
parent 4ddfe97155
commit 46bdb85dd8
2 changed files with 14 additions and 12 deletions
+6 -6
View File
@@ -35,7 +35,7 @@ else
fi
### PSOL Download (PageSpeed)
if [ ! -d "lib/pagespeed" ] && [ "$PAGESPEED" = "y" ]; then
if [ ! -d "lib/pagespeed" ] && [ "$PAGESPEED" = 1 ]; then
### Download pagespeed
cd lib
wget -c https://github.com/apache/incubator-pagespeed-ngx/archive/v1.13.35.2-stable.zip
@@ -66,23 +66,23 @@ else
fi
### Module check
if [ "$PAGESPEED" = "y" ]; then
if [ "$PAGESPEED" = 1 ]; then
BUILD_MODULES="--add-module=./lib/pagespeed ${PS_NGX_EXTRA_FLAGS}"
fi
if [ "$RTMP" = "y" ]; then
if [ "$RTMP" = 1 ]; then
BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/nginx-rtmp-module"
fi
if [ "$NAXSI" = "y" ]; then
if [ "$NAXSI" = 1 ]; then
BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/naxsi/naxsi_src"
fi
if [ "$DAV_EXT" = "y" ]; then
if [ "$DAV_EXT" = 1 ]; then
BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/nginx-dav-ext-module"
fi
if [ "$FANCYINDEX" = "y" ]; then
if [ "$FANCYINDEX" = 1 ]; then
BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/ngx-fancyindex"
fi
+8 -6
View File
@@ -13,29 +13,31 @@ SERVER_HEADER="hakase"
### x86, x64 check
### If you do not want optimization, uncomment it.
### (Comment out existing sources.)
### Do not modify it under normal circumstances.
BITCHK=`getconf LONG_BIT`
#BITCHK="32"
### Multithread build
### Do not modify it under normal circumstances.
BUILD_MTS="-j$(expr $(nproc) \+ 1)"
#########################
### Select add module ###
#########################
### If you do not want to build modules, please enter a value other than "y".
### Enter 0 for the module that is not to be used.
### PageSpeed
PAGESPEED="y"
PAGESPEED=1
### nginx-rtmp-module
RTMP="y"
RTMP=1
### naxsi
NAXSI="y"
NAXSI=1
### nginx-dav-ext-module
DAV_EXT="y"
DAV_EXT=1
### fancyindex
FANCYINDEX="y"
FANCYINDEX=1