forked from Hakase/nginx-build
Change the config.inc name to config.inc.example.
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
## How to Install?
|
||||
1. Install dependency library. (If you have already install it, omit it.)
|
||||
2. Edit for config.inc file. (SERVER_HEADER, Modules, ETC.)
|
||||
- If you receive the source for the first time, type the following command to set it.
|
||||
- Then modify config.inc.
|
||||
- cp config.inc.example config.inc
|
||||
3. Run ./auto.sh
|
||||
4. Install [systemd file](https://www.nginx.com/resources/wiki/start/topics/examples/systemd/) (If you have already install it, omit it.)
|
||||
5. Check version and error test : **nginx -v; nginx -t;**
|
||||
|
||||
+3
-66
@@ -1,66 +1,3 @@
|
||||
#!/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)"
|
||||
|
||||
#########################
|
||||
### Select add module ###
|
||||
#########################
|
||||
|
||||
### Enter 0 for the module that is not to be used.
|
||||
|
||||
### PageSpeed
|
||||
PAGESPEED=1
|
||||
|
||||
### nginx-rtmp-module
|
||||
RTMP=1
|
||||
|
||||
### naxsi
|
||||
NAXSI=1
|
||||
|
||||
### nginx-dav-ext-module
|
||||
DAV_EXT=1
|
||||
|
||||
### fancyindex
|
||||
FANCYINDEX=1
|
||||
|
||||
##########################
|
||||
### 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"
|
||||
### If you receive the source for the first time, type the following command to set it.
|
||||
### Then modify config.inc.
|
||||
cp config.inc.example config.inc
|
||||
@@ -0,0 +1,66 @@
|
||||
#!/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)"
|
||||
|
||||
#########################
|
||||
### Select add module ###
|
||||
#########################
|
||||
|
||||
### Enter 0 for the module that is not to be used.
|
||||
|
||||
### PageSpeed
|
||||
PAGESPEED=1
|
||||
|
||||
### nginx-rtmp-module
|
||||
RTMP=1
|
||||
|
||||
### naxsi
|
||||
NAXSI=1
|
||||
|
||||
### nginx-dav-ext-module
|
||||
DAV_EXT=1
|
||||
|
||||
### fancyindex
|
||||
FANCYINDEX=1
|
||||
|
||||
##########################
|
||||
### 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"
|
||||
Reference in New Issue
Block a user