78 lines
1.3 KiB
Bash
78 lines
1.3 KiB
Bash
#!/bin/sh
|
|
|
|
######################
|
|
### 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.)
|
|
### 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)"
|
|
|
|
### LTO build
|
|
### View : https://gcc.gnu.org/wiki/LinkTimeOptimization#Using_LTO
|
|
LTO=0
|
|
|
|
#########################
|
|
### Select add module ###
|
|
#########################
|
|
|
|
### Enter 0 for the module that is not to be used.
|
|
|
|
### PageSpeed
|
|
PAGESPEED=0
|
|
|
|
### nginx-http-flv-module
|
|
FLV=0
|
|
|
|
### naxsi
|
|
NAXSI=0
|
|
|
|
### nginx-dav-ext-module
|
|
DAV_EXT=1
|
|
|
|
### fancyindex
|
|
FANCYINDEX=1
|
|
|
|
### GEOIP2
|
|
GEOIP2=1
|
|
|
|
### nginx-module-vts
|
|
VTS=0
|
|
|
|
##########################
|
|
### nginx install path ###
|
|
##########################
|
|
|
|
### Prefix
|
|
NGX_PREFIX="/usr/local/nginx"
|
|
|
|
### Binary
|
|
NGX_SBIN_PATH="/usr/sbin/nginx"
|
|
|
|
### Config Path
|
|
NGX_CONF="/etc/nginx/nginx.conf"
|
|
|
|
### Temp Path (client_body_temp, proxy_temp, ...)
|
|
NGX_LIB="/var/lib/nginx"
|
|
|
|
### Log path
|
|
NGX_LOG="/var/log/nginx"
|
|
|
|
### PID file
|
|
NGX_PID="/var/run/nginx.pid"
|
|
|
|
### Lock file
|
|
NGX_LOCK="/var/lock/nginx.lock"
|
|
|