From c7b101f3dc0f5b4ef7e8e31b55958ccf6a88c824 Mon Sep 17 00:00:00 2001 From: Hakase Date: Sat, 12 May 2018 06:05:29 +0900 Subject: [PATCH] Change the config.inc name to config.inc.example. --- README.md | 3 ++ config.inc | 69 ++-------------------------------------------- config.inc.example | 66 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 66 deletions(-) create mode 100644 config.inc.example diff --git a/README.md b/README.md index c2f1a40..2e5d3c7 100644 --- a/README.md +++ b/README.md @@ -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;** diff --git a/config.inc b/config.inc index 02bae82..71c1b51 100644 --- a/config.inc +++ b/config.inc @@ -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 diff --git a/config.inc.example b/config.inc.example new file mode 100644 index 0000000..02bae82 --- /dev/null +++ b/config.inc.example @@ -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"